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  
 

Semaphore::~Semaphore  
 


Member Function Documentation

bool Semaphore::isBusy  
 

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

int Semaphore::Post  
 

Unlock.

int Semaphore::PostCount  
 

Number of times Post() was called.

int Semaphore::Wait  
 

Wait until lock is available and then lock it.

int Semaphore::WaitCount  
 

Number of times Wait() was called.


The documentation for this class was generated from the following files:
Generated on Sun Jun 16 17:36:51 2002 for Anirudh's Vortex-Wake Simulation Code by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001