Gnash  0.8.10
Classes | Public Types | Public Member Functions
gnash::SharedMem Class Reference

#include <SharedMem.h>

List of all members.

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.

Member Typedef Documentation

typedef boost::uint8_t* gnash::SharedMem::iterator

Constructor & Destructor Documentation

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.
gnash::SharedMem::~SharedMem ( )

Destructor.

References _.


Member Function Documentation

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]

The end of the SharedMem section.

This is only valid after attach() has returned true.


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