Qore Programming Language Reference Manual  0.9.13
QC_Condition.dox.h
1 namespace Qore {
4 namespace Thread {
6 
13 class Condition {
14 
15 public:
17 
28 nothing broadcast();
29 
30 public:
32 
37  constructor();
38 
39 public:
41 
46  copy();
47 
48 public:
50 
61 nothing signal();
62 
63 public:
65 
84 int wait(AbstractSmartLock lock, timeout timeout_ms = 0);
85 
86 public:
88 
98 };
99 }
100 }
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:13
constructor()
Creates the Condition object.
copy()
Creates a new Condition object, not based on the original.
nothing signal()
Signals a single blocked thread to wake up.
int wait_count(AbstractSmartLock lock)
Returns the number of threads currently blocked on this object using the AbstractSmartLock passed...
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3
nothing broadcast()
Signals all threads blocked on this Condition object to wake up.
int wait(AbstractSmartLock lock, timeout timeout_ms=0)
Blocks a thread until signaled; accepts an optional timeout value.