#include <GSharedMemory.h>
Public Member Functions | |
GSharedMemory (char *Name, int Size) | |
Construt the shared memory. | |
virtual | ~GSharedMemory () |
void * | GetPtr () |
Returns the start of the block. | |
int | GetSize () |
Returns the number of bytes addressable. | |
void | Destroy () |
Disconnects from the shared memory resource. |
This class enables separate processes to access the same peice of memory. A full discussion of the problems of pre-emptively multi-tasked processes accessing the same memory is beyond the scope of this document but suffice to say you need to know what your doing.
Initially all the bytes of the memory block are initialized to 0.
|
Construt the shared memory.
|
|
Disconnect from the shared memory and free resources. This doesn't delete the shared memory block on Linux. |