Loading...
Searching...
No Matches
QC_Condition.dox.h
namespace Qore {
namespace 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: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
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3