SemaphorePair Class Reference

#include <ipc.simple.sem.H>

List of all members.

Public Types

enum  { EMPTY = 0, FULL = 1 }
enum  { ALL_DONE = 0, DONE = 1 }

Public Member Functions

 SemaphorePair (int key)
virtual ~SemaphorePair ()
int semid () const
int create ()
int attach ()
int wait (int index)
int signal (int index)

Protected Attributes

int _semid
int _creator
int _key

Member Enumeration Documentation

anonymous enum


anonymous enum


Constructor & Destructor Documentation

SemaphorePair::SemaphorePair ( int  key  )  [inline]

virtual SemaphorePair::~SemaphorePair (  )  [inline, virtual]

References _creator, and _semid.

Member Function Documentation

int SemaphorePair::semid (  )  const [inline]

References _semid.

int SemaphorePair::create (  )  [inline]

References _creator, _key, and _semid.

int SemaphorePair::attach (  )  [inline]

References _key, and _semid.

int SemaphorePair::wait ( int  index  )  [inline]

References _semid.

int SemaphorePair::signal ( int  index  )  [inline]

References _semid.

Member Data Documentation

int SemaphorePair::_semid [protected]

int SemaphorePair::_creator [protected]

Referenced by create(), and ~SemaphorePair().

int SemaphorePair::_key [protected]

Referenced by attach(), and create().

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

Generated on Wed Jan 26 06:31:20 2011 for IS3D by  doxygen 1.5.6