PTLib
Version 2.14.3
|
This class defines a thread synchronisation object. More...
#include <syncthrd.h>
Public Member Functions | |
virtual void | WaitCondition () |
This function attempts to acquire the mutex, but will block not only until the mutex is free, but also that the condition returned by the Condition() function is also met. More... | |
virtual void | Signal () |
If there are waiting (blocked) threads then unblock the first one that was blocked. More... | |
virtual PBoolean | Condition ()=0 |
This is the condition that must be met for the WaitCondition() function to acquire the mutex. More... | |
virtual void | OnWait () |
This function is called immediately before blocking on the condition in the WaitCondition() function. More... | |
Protected Attributes | |
PSyncPoint | syncPoint |
This class defines a thread synchronisation object.
This is a special type of mutual exclusion, where a thread wishes to get exlusive use of a resource but only if a certain other condition is met.
|
pure virtual |
This is the condition that must be met for the WaitCondition() function to acquire the mutex.
Implemented in PIntCondMutex.
|
virtual |
This function is called immediately before blocking on the condition in the WaitCondition() function.
This could get called multiple times before the condition is met and the WaitCondition() function returns.
|
virtual |
If there are waiting (blocked) threads then unblock the first one that was blocked.
If no waiting threads and the count is less than the maximum then increment the semaphore.
|
virtual |
This function attempts to acquire the mutex, but will block not only until the mutex is free, but also that the condition returned by the Condition() function is also met.
|
protected |