class FLSharedMemory

This class encapsulates System V shared memory operations

Inheritance:


Private

Data
key_t _key
The shared memory key
int _size
The size in bytes of the shared memory segment
int _mode
The operating system permissions associated with the segment
int _id
The operating system assigned ID for the segment
void* _buffer
The actual memory that is being shared
Methods
FLSharedMemory(key_t key, int size, int mode = 0666)
This constructor creates a new shared memory segment
FLSharedMemory(int id = 0)
This constructor attaches to the specified shared memory segment, if none was specified it creates a new one
~FLSharedMemory(void)
The destructor detaches the shared memory segment
void* GetAddress(void)
Returns the address of the shared memory segment
int GetID(void)
Returns the ID of the shared memory segment
void shm_get_id(void)
ask the operating system for the shared segment ID
void shm_attach(void)
ask the operating system to attach to the specified segment

Documentation

This class encapsulates System V shared memory operations
Methods

FLSharedMemory(key_t key, int size, int mode = 0666)
This constructor creates a new shared memory segment

FLSharedMemory(int id = 0)
This constructor attaches to the specified shared memory segment, if none was specified it creates a new one

~FLSharedMemory(void)
The destructor detaches the shared memory segment

void* GetAddress(void)
Returns the address of the shared memory segment

int GetID(void)
Returns the ID of the shared memory segment

void shm_get_id(void)
ask the operating system for the shared segment ID

void shm_attach(void)
ask the operating system to attach to the specified segment

Data

key_t _key
The shared memory key

int _size
The size in bytes of the shared memory segment

int _mode
The operating system permissions associated with the segment

int _id
The operating system assigned ID for the segment

void* _buffer
The actual memory that is being shared


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de