Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

SemSet::SemaphoreSet Class Reference

#include <SemaphoreSet.h>

List of all members.

Public Types

enum  SemSetRetVal { OK, FAIL }

Public Member Functions

 SemaphoreSet (int numOfSems)
 SemaphoreSet (const SemaphoreSet &otherSet)
 ~SemaphoreSet () throw (SemUnknownSetException)
SemSetRetVal lock (int semNum) throw (SemException)
SemSetRetVal unlock (int semNum) throw (SemException)


Detailed Description

Set of semaphores.

Author:
Nir Shahaf
Version:
0.1


Member Enumeration Documentation

enum SemSet::SemaphoreSet::SemSetRetVal
 

Returns values.

Enumeration values:
OK 
FAIL 


Constructor & Destructor Documentation

SemSet::SemaphoreSet::SemaphoreSet int  numOfSems  ) 
 

Constructor.

Parameters:
numOfSems Number of semaphores in the set.

SemSet::SemaphoreSet::SemaphoreSet const SemaphoreSet otherSet  ) 
 

Copy constructor.

Parameters:
otherSet The set to clone.

SemSet::SemaphoreSet::~SemaphoreSet  )  throw (SemUnknownSetException)
 

Destructor.


Member Function Documentation

SemSetRetVal SemSet::SemaphoreSet::lock int  semNum  )  throw (SemException)
 

Locks a semaphore in the set.

Parameters:
semNum The id of the semaphore in the set.
Returns:
OK/FAIL

SemSetRetVal SemSet::SemaphoreSet::unlock int  semNum  )  throw (SemException)
 

Unlocks a semaphore in the set.

Parameters:
semNum The id of the semaphore in the set.
Returns:
OK/FAIL


The documentation for this class was generated from the following file:
Generated on Thu Jan 27 10:06:44 2005 for ShmAllocator by doxygen 1.3.6