Gnash
0.8.10
|
#include <SharedMem.h>
Classes | |
class | Lock |
Use to get a scoped semaphore lock on the shared memory. More... | |
Public Types | |
typedef boost::uint8_t * | iterator |
Public Member Functions | |
iterator | begin () const |
The beginning of the SharedMem section. | |
iterator | end () const |
The end of the SharedMem section. | |
DSOEXPORT | SharedMem (size_t size) |
Construct a SharedMem with the requested size. | |
DSOEXPORT | ~SharedMem () |
Destructor. | |
DSOEXPORT bool | attach () |
Initialize the shared memory segment. |
typedef boost::uint8_t* gnash::SharedMem::iterator |
gnash::SharedMem::SharedMem | ( | size_t | size | ) |
Construct a SharedMem with the requested size.
size | The size of the shared memory section. If successfully created, the segment will be exactly this size and is not resizable. |
gnash::SharedMem::~SharedMem | ( | ) |
Destructor.
References _.
bool gnash::SharedMem::attach | ( | ) |
Initialize the shared memory segment.
This is called by LocalConnection when either connect() or send() is called.
References gnash::key::s, _, and assert.
iterator gnash::SharedMem::begin | ( | ) | const [inline] |
The beginning of the SharedMem section.
This is only valid after attach() has returned true. You can check with the function attached().
iterator gnash::SharedMem::end | ( | ) | const [inline] |