All Classes Namespaces Functions Variables Groups Pages
QC_Condition.dox.h
namespace Qore::Thread {
class Condition {
public:
nothing broadcast();
public:
constructor();
public:
copy();
public:
nothing signal();
public:
int wait(AbstractSmartLock lock, timeout timeout_ms = 0);
public:
int wait_count(AbstractSmartLock lock);
};
};
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.