Classes | Public Types | Public Member Functions

gnash::SharedMem Class Reference

#include <SharedMem.h>

Inheritance diagram for gnash::SharedMem:
Inheritance graph
[legend]

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:
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 errno.


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 errno, and s.

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 cygnal::LcShm::connect().

iterator gnash::SharedMem::end (  )  const [inline]

The end of the SharedMem section.

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

Referenced by cygnal::LcShm::connect().


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