Add safety check in shmem region location

This commit is contained in:
Alexey Rybalchenko
2019-10-23 15:56:43 +02:00
committed by Dennis Klein
parent 040931fba7
commit 160ee9d064
4 changed files with 23 additions and 12 deletions

View File

@@ -28,6 +28,7 @@
#include <string>
#include <unordered_map>
#include <stdexcept>
namespace fair
{
@@ -36,6 +37,8 @@ namespace mq
namespace shmem
{
struct SharedMemoryError : std::runtime_error { using std::runtime_error::runtime_error; };
class Manager
{
friend struct Region;