29 #ifndef Pt_Semaphore_h
30 #define Pt_Semaphore_h
32 #include <Pt/System/Api.h>
33 #include <Pt/NonCopyable.h>
43 friend class SemaphoreImpl;
63 class SemaphoreImpl* _impl;
70 #endif // Pt_Semaphore_h
Core module.
Definition: pt-gfx-images.dox:14
bool tryWait()
Non-blocking wait.
Semaphore(unsigned int initial=0)
Construct with initial count.
Semaphore & wait()
Wait for the semaphore to become signaled.
~Semaphore()
Destructor. Does not signal...
Semaphore & post()
Signal the semaphore
Protects derived classes from being copied.
Definition: NonCopyable.h:54
Semaphore synchronization object.
Definition: Semaphore.h:42