class sharedMemory

Share Memory Object

Inheritance:


Public

Data
int shmid
The Shared Memory Identifier used in SysV shared memory calls
volatile void* buffer
The shared memory that is acquired by the SysV shared memory calls
Methods
volatile void* AttachMemory(key_t key = 0xffff0000, int size = 0, int mode = 0666)
This function takes three arguments, a key_t shared memory key, an integer size, and an integer mode, used acquired the shared memory from the system. It returns a pointer to the memory acquired.
void DetachMemory()
This function takes no arguments and simply destroys the shared memory previously acquired.

Documentation

Share Memory Object. This object encapsulates system V shared memory into an object that can be utilized in C++. I use it as a parent object.
Data

int shmid
The Shared Memory Identifier used in SysV shared memory calls

volatile void* buffer
The shared memory that is acquired by the SysV shared memory calls

Methods

volatile void* AttachMemory(key_t key = 0xffff0000, int size = 0, int mode = 0666)
This function takes three arguments, a key_t shared memory key, an integer size, and an integer mode, used acquired the shared memory from the system. It returns a pointer to the memory acquired.

void DetachMemory()
This function takes no arguments and simply destroys the shared memory previously acquired.


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