Qore Programming Language Reference Manual: lib/QC_Condition.dox.h Source File

Qore Programming Language Reference Manual 0.8.11

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

All Classes Namespaces Functions Variables Groups Pages
QC_Condition.dox.h
1 namespace Qore::Thread {
4
11 class Condition {
12
13 public:
15
26 nothing broadcast();
27
28 public:
30
35 constructor();
36
37 public:
39
44 copy();
45
46 public:
48
59 nothing signal();
60
61 public:
63
82 int wait(AbstractSmartLock lock, timeout timeout_ms = 0);
83
84 public:
86
95 int wait_count(AbstractSmartLock lock);
96 };
97 };
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:13
Qore::Thread::Condition
The Condition class can be used For blocking a thread until a condition becomes True.
Definition: QC_Condition.dox.h:11
Qore::Thread::Condition::constructor
constructor()
Creates the Condition object.
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_count
int wait_count(AbstractSmartLock lock)
Returns the number of threads currently blocked on this object using the AbstractSmartLock passed...
Qore::Thread::Condition::broadcast
nothing broadcast()
Signals all threads blocked on this Condition object 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.