Gnash  0.8.11dev
Classes | Public Types | Public Member Functions | List of all members
gnash::SharedMem Class Reference

#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...
 

Member Typedef Documentation

§ iterator

typedef std::uint8_t* gnash::SharedMem::iterator

Constructor & Destructor Documentation

§ SharedMem()

gnash::SharedMem::SharedMem ( size_t  size)

Construct a SharedMem with the requested size.

Parameters
sizeThe size of the shared memory section. If successfully created, the segment will be exactly this size and is not resizable.

Referenced by end().

§ ~SharedMem()

gnash::SharedMem::~SharedMem ( )

Member Function Documentation

§ attach()

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().

§ begin()

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().

Referenced by gnash::attached(), and gnash::registerLocalConnectionNative().

§ end()

iterator gnash::SharedMem::end ( ) const
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().


The documentation for this class was generated from the following files: