52 virtual void Wait() = 0;
110 #endif // PTLIB_SYNC_H
This class waits for the semaphore on construction and automatically signals the semaphore on destruc...
Definition: psync.h:86
~PWaitAndSignal()
Signal the semaphore.
Definition: psync.h:102
virtual void Wait()=0
Block until the synchronisation object is available.
virtual void Wait()
Block until the synchronisation object is available.
Definition: psync.h:63
PWaitAndSignal(const PSync &sem, PBoolean wait=true)
Create the semaphore wait instance.
Definition: psync.h:92
virtual void Signal()
Signal that the synchronisation object is available.
Definition: psync.h:64
BOOL PBoolean
Definition: object.h:102
virtual void Signal()=0
Signal that the synchronisation object is available.
Ultimate parent class for all objects in the class library.
Definition: object.h:1118
PSync & sync
Definition: psync.h:106