| Qore Programming Language Reference Manual 2.2.0

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