18 virtual const char* what()
const noexcept;
21 const std::string message;
34 static void GenKey(
char *buffer,
size_t length);
46 static void*
Init(
const char *key,
49 void *ptr =
nullptr );
58 static void*
Open(
const char *key );
69 static bool Close(
const char *key,
73 bool unlink =
false );
static void * Open(const char *key)
Definition: shm.cpp:140
static bool Close(const char *key, void *ptr, size_t nbytes, bool zero=false, bool unlink=false)
Definition: shm.cpp:198
bad_shm_alloc(const std::string message)
Definition: shm.cpp:26
static void GenKey(char *buffer, size_t length)
Definition: shm.cpp:39
static void * Init(const char *key, size_t nbytes, bool zero=true, void *ptr=nullptr)
Definition: shm.cpp:63