Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Semaphore Class Reference

#include <semaphore.h>

List of all members.

Public Methods

 Semaphore ()
 ~Semaphore ()
bool isBusy ()
 Return whether there is already a Wait() in progress. More...

int Wait ()
 Wait until lock is available and then lock it. More...

int Post ()
 Unlock. More...

int WaitCount ()
 Number of times Wait() was called. More...

int PostCount ()
 Number of times Post() was called. More...


Constructor & Destructor Documentation

Semaphore::Semaphore  
 

Definition at line 4 of file semaphore.cc.

Semaphore::~Semaphore  
 

Definition at line 10 of file semaphore.cc.


Member Function Documentation

bool Semaphore::isBusy  
 

Return whether there is already a Wait() in progress.

Definition at line 15 of file semaphore.cc.

References Post().

int Semaphore::Post  
 

Unlock.

Definition at line 33 of file semaphore.cc.

Referenced by isBusy(), Thread::Post(), and DataServer::Post().

int Semaphore::PostCount  
 

Number of times Post() was called.

Definition at line 45 of file semaphore.cc.

int Semaphore::Wait  
 

Wait until lock is available and then lock it.

Definition at line 26 of file semaphore.cc.

Referenced by Thread::Wait(), and DataServer::Wait().

int Semaphore::WaitCount  
 

Number of times Wait() was called.

Definition at line 40 of file semaphore.cc.


The documentation for this class was generated from the following files:
Generated on Sun Jun 16 17:36:52 2002 for POSSE: Portable Object-oriented Scientific Steering Environment by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001