34 #ifndef PTLIB_SEMAPHORE_H 35 #define PTLIB_SEMAPHORE_H 142 #include "msos/ptlib/semaphor.h" 144 #include "unix/ptlib/semaphor.h" 149 #endif // PTLIB_SEMAPHORE_H This class defines a thread synchronisation object.
Definition: semaphor.h:78
This class defines an arbitrary time interval to millisecond accuracy.
Definition: timeint.h:55
virtual PBoolean WillBlock() const
Determine if the semaphore would block if the Wait() function were called.
virtual void Signal()
If there are waiting (blocked) threads then unblock the first one that was blocked.
BOOL PBoolean
Definition: object.h:102
virtual void Wait()
If the semaphore count is > 0, decrement the semaphore and return.
~PSemaphore()
Destroy the semaphore.
PSemaphore(unsigned initial, unsigned maximum)
Create a new semaphore with maximum count and initial value specified.