 |
Qore Programming Language Reference Manual
0.9.4.2
|
nothing signal()
Signals a single blocked thread to wake up.
int wait(AbstractSmartLock lock, timeout timeout_ms=0)
Blocks a thread until signaled; accepts an optional timeout value.
constructor()
Creates the Condition object.
The Condition class can be used For blocking a thread until a condition becomes True.
Definition: QC_Condition.dox.h:13
int wait_count(AbstractSmartLock lock)
Returns the number of threads currently blocked on this object using the AbstractSmartLock passed.
nothing broadcast()
Signals all threads blocked on this Condition object to wake up.
The abstract base class for locks that support the internal API for use with the Condition class.
Definition: QC_AbstractSmartLock.dox.h:15
copy()
Creates a new Condition object, not based on the original.
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3