Gnash
0.8.11dev
|
#include <SharedMem.h>
Classes | |
class | Lock |
Use to get a scoped semaphore lock on the shared memory. More... | |
Public Types | |
typedef std::uint8_t * | iterator |
Public Member Functions | |
iterator | begin () const |
The beginning of the SharedMem section. More... | |
iterator | end () const |
The end of the SharedMem section. More... | |
DSOEXPORT | SharedMem (size_t size) |
Construct a SharedMem with the requested size. More... | |
DSOEXPORT | ~SharedMem () |
Destructor. More... | |
DSOEXPORT bool | attach () |
Initialize the shared memory segment. More... | |
typedef std::uint8_t* gnash::SharedMem::iterator |
gnash::SharedMem::SharedMem | ( | size_t | size | ) |
gnash::SharedMem::~SharedMem | ( | ) |
Destructor.
References _, gnash::gnashSleep(), gnash::key::i, gnash::log_debug(), gnash::log_error(), and gnash::key::s.
Referenced by end().
bool gnash::SharedMem::attach | ( | ) |
Initialize the shared memory segment.
This is called by LocalConnection when either connect() or send() is called.
References _, gnash::log_debug(), and gnash::log_error().
Referenced by end().
|
inline |
The beginning of the SharedMem section.
This is only valid after attach() has returned true. You can check with the function attached().
Referenced by gnash::attached(), and gnash::registerLocalConnectionNative().
|
inline |
The end of the SharedMem section.
This is only valid after attach() has returned true.
References attach(), DSOEXPORT, SharedMem(), and ~SharedMem().
Referenced by gnash::registerLocalConnectionNative().