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

FX::FXSemaphore Class Reference

#include <FXThread.h>

List of all members.

Public Member Functions

 FXSemaphore (FXint initial=1)
void wait ()
FXbool trywait ()
void post ()
 ~FXSemaphore ()

Detailed Description

A semaphore allows for protection of a resource that can be accessed by a fixed number of simultaneous threads.


Constructor & Destructor Documentation

Initialize semaphore with given count.

Delete semaphore.


Member Function Documentation

Decrement semaphore.

Non-blocking semaphore decrement; return true if locked.

Increment semaphore.

Copyright © 1997-2005 Jeroen van der Zijp