28 #ifndef ipc_sharedMemSegment_hpp
29 #define ipc_sharedMemSegment_hpp
89 key_t
setKey(
const char * path,
108 int attach(
bool donot_set_addr =
false);
A c++ class to manage a System V shared memory segment with memory mapping.
void initialize()
Initialize the class.
int shmemid
The shared memory id associated with the key.
int create(size_t sz)
Create and attach to the segment.
int detach()
Detach from the segment.
int key_id
The id to use for key creation.
size_t size
The size of the segment.
int attach(bool donot_set_addr=false)
Attach to a segment without creating it.
void * addr
The base address of the segment.
key_t key
The shared memory key.
int attached
Flag indicating whether or not the segment is attached.
char key_path[MX_IPC_KEYLEN]
The path to use for key creation.
key_t setKey(const char *path, const int id)
Set the key.
Declarations for the mxlib interprocess communication (IPC) tools.