Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

LOW_semaphoreSet_SysV Class Reference

Platform specific semaphoreSet for Unix System V platforms. More...

#include <LOW_semaphoreSet_SysV.h>

Inheritance diagram for LOW_semaphoreSet_SysV:

Inheritance graph
[legend]
Collaboration diagram for LOW_semaphoreSet_SysV:

Collaboration graph
[legend]
List of all members.

Public Methods

 LOW_semaphoreSet_SysV (const LOW_semaphoreSetFactory::semSetIPCKey_t inKey, const unsigned int inSemCount, const unsigned int inInitVal)
 Constructor. More...

virtual ~LOW_semaphoreSet_SysV ()
 Destructor. More...

void decSem (const unsigned int inSemNo) const
 Decrease a semaphore. More...

void incSem (const unsigned int inSemNo) const
 Increase a semaphore. More...


Private Attributes

const key_t semSetKey
 IPC key of the segment. More...

int semSetID
 Sys V segment ID. More...


Static Private Attributes

const int SEM_PERMS = 0770
 Permissions for the semaphore set. More...


Detailed Description

Platform specific semaphoreSet for Unix System V platforms.

Author:
Harald Roelle, Helmut Reiser

Definition at line 31 of file LOW_semaphoreSet_SysV.h.


Constructor & Destructor Documentation

LOW_semaphoreSet_SysV::LOW_semaphoreSet_SysV const LOW_semaphoreSetFactory::semSetIPCKey_t    inKey,
const unsigned int    inSemCount,
const unsigned int    inInitVal
 

Constructor.

Parameters:
inSemSetIPCKey  Unique identifier for new shared memory segment. To get such an identifier see LOW_IPCKeyGenerator.
inSemCount  Number of semaphores in set.
inInitVal  Initial values of semaphores.

Definition at line 37 of file LOW_semaphoreSet_SysV.cpp.

References SEM_PERMS, semSetID, and semSetKey.

LOW_semaphoreSet_SysV::~LOW_semaphoreSet_SysV   [virtual]
 

Destructor.

Definition at line 66 of file LOW_semaphoreSet_SysV.cpp.

References semSetID.


Member Function Documentation

void LOW_semaphoreSet_SysV::decSem const unsigned int    inSemNo const [virtual]
 

Decrease a semaphore.

Parameters:
inSemNo  Number of the semaphore in the set.

Reimplemented from LOW_semaphoreSet.

Definition at line 78 of file LOW_semaphoreSet_SysV.cpp.

References semSetID.

void LOW_semaphoreSet_SysV::incSem const unsigned int    inSemNo const [virtual]
 

Increase a semaphore.

Parameters:
inSemNo  Number of the semaphore in the set.

Reimplemented from LOW_semaphoreSet.

Definition at line 93 of file LOW_semaphoreSet_SysV.cpp.

References semSetID.


Member Data Documentation

const int LOW_semaphoreSet_SysV::SEM_PERMS = 0770 [static, private]
 

Permissions for the semaphore set.

Definition at line 74 of file LOW_semaphoreSet_SysV.h.

Referenced by LOW_semaphoreSet_SysV().

int LOW_semaphoreSet_SysV::semSetID [private]
 

Sys V segment ID.

Definition at line 83 of file LOW_semaphoreSet_SysV.h.

Referenced by decSem(), incSem(), LOW_semaphoreSet_SysV(), and ~LOW_semaphoreSet_SysV().

const key_t LOW_semaphoreSet_SysV::semSetKey [private]
 

IPC key of the segment.

Definition at line 82 of file LOW_semaphoreSet_SysV.h.

Referenced by LOW_semaphoreSet_SysV().


The documentation for this class was generated from the following files:
Generated on Sun Jan 12 21:07:58 2003 by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001