Qore Programming Language Reference Manual 1.19.2
Loading...
Searching...
No Matches
QC_Condition.dox.h
1
2namespace Qore {
4namespace Thread {
6
14class Condition {
15
16public:
18
32nothing broadcast();
33
34public:
36
42
43public:
45
51
52public:
54
68nothing signal();
69
70public:
72
101int wait(AbstractSmartLock lock, timeout timeout_ms = 0);
102
103public:
105
116};
117}
118}
The abstract base class for locks that support the internal API for use with the Condition class.
Definition: QC_AbstractSmartLock.dox.h:15
The Condition class can be used For blocking a thread until a condition becomes True.
Definition: QC_Condition.dox.h:14
nothing broadcast()
Signals all threads blocked on this Condition object to wake up.
copy()
Creates a new Condition object, not based on the original.
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.
int wait_count(AbstractSmartLock lock)
Returns the number of threads currently blocked on this object using the AbstractSmartLock passed.
constructor()
Creates the Condition object.
Qore namespace.
Definition: QC_AbstractSmartLock.dox.h:2