FUSemaphore Class Reference
[Utility Classes.]

An OS independent semaphore. More...

#include <FUSemaphore.h>

Inheritance diagram for FUSemaphore:

FUBinarySemaphore List of all members.

Public Member Functions

 FUSemaphore (uint32 initialValue, uint32 maximumValue)
 Constructor.
 ~FUSemaphore ()
 Destructor.
void Up ()
 Increments the value of the semaphore.
void Down ()
 Decrements the value of the semaphore.

Detailed Description

An OS independent semaphore.

Currently only supported for WIN32.


Constructor & Destructor Documentation

FUSemaphore::FUSemaphore uint32  initialValue,
uint32  maximumValue
 

Constructor.

Parameters:
initialValue The initial value for the semaphore.
maximumValue The maximum value for the semaphore. Must be higher than initialValue.


Member Function Documentation

void FUSemaphore::Down  ) 
 

Decrements the value of the semaphore.

The value of the semaphore never drops below 0. If the current value is 0, and this method is called, then this method blocks until it is possible to decrement it and then does so. This is made possible when another thread calls Up.

If more than one thread is blocked, and Up is called, any one of the waiting threads may be unblocked.

void FUSemaphore::Up  ) 
 

Increments the value of the semaphore.

Do not increment it above the maximum value set in the constructor. No check is made.


The documentation for this class was generated from the following file:
Generated on Thu Feb 14 16:58:41 2008 for FCollada by  doxygen 1.4.6-NO