Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | Class Members | Related Pages

SigCX::Threads::Semaphore Class Reference
[Threading]

Integer Semaphore. More...

#include <thread.h>

List of all members.

Public Member Functions

 Semaphore (int value=1)
 ~Semaphore ()
void up ()
void down ()


Detailed Description

Integer Semaphore.

A Semaphore is a counter that has can be decremented and incremented. The increment never blocks, the decrement blocks when trying to decrement below zero.


Constructor & Destructor Documentation

SigCX::Threads::Semaphore::Semaphore int  value = 1  )  [inline]
 

Constructor.

Parameters:
value initial value of the semaphore.

SigCX::Threads::Semaphore::~Semaphore  )  [inline]
 

Destructor.


Member Function Documentation

void SigCX::Threads::Semaphore::down  ) 
 

Decrement.

void SigCX::Threads::Semaphore::up  ) 
 

Increment.


The documentation for this class was generated from the following file:
Generated on Sun Apr 10 18:35:43 2005 for SigCX - SigC++ Extras by  doxygen 1.4.2