Semaphore Class Reference

#include <Pt/System/Semaphore.h>

Semaphore synchronization object.

Inherits NonCopyable.

Public Member Functions

 Semaphore (unsigned int initial=0)
 Construct with initial count.
 
 ~Semaphore ()
 Destructor. Does not signal...
 
Semaphorepost ()
 Signal the semaphore
 
bool tryWait ()
 Non-blocking wait.
 
Semaphorewait ()
 Wait for the semaphore to become signaled.