ASL
|
Provides shared memory among processes.
A SharedMemory object must be created with a name and a size. Then other processes can use the same memory by creating an object with the same name and size. The function ptr() returns a pointer to the base of the shared memory block or NULL y there was a problem creating the mapping.
Then another process can do:
To read from the memory written by the first process.
#include <SharedMem.h>
Public Member Functions | |
SharedMem (const String &name, int size) | |
Creates a shared memory object with the given name and size in bytes. More... | |
byte * | ptr () |
Returns the base address of the mapping of this block in the current process or NULL on error. | |
Creates a shared memory object with the given name and size in bytes.
If a segment with that name does not exist it will be created, otherwise a reference to it will be made.