Condition object for this Synchronizer, which serves as the basis for other Lock objects.
More...
#include <src/main/decaf/util/concurrent/locks/AbstractQueuedSynchronizer.h>
Public Member Functions |
| ConditionObject () |
virtual | ~ConditionObject () |
virtual | ~Condition () |
virtual void | await ()=0 |
| Causes the current thread to wait until it is signaled or interrupted.
|
virtual void | awaitUninterruptibly ()=0 |
| Causes the current thread to wait until it is signalled.
|
virtual long long | awaitNanos (long long nanosTimeout)=0 |
| Causes the current thread to wait until it is signaled or interrupted, or the specified waiting time elapses.
|
virtual bool | await (long long time, const TimeUnit &unit)=0 |
| Causes the current thread to wait until it is signaled or interrupted, or the specified waiting time elapses.
|
virtual bool | awaitUntil (const Date &deadline)=0 |
virtual void | signal ()=0 |
| Wakes up one waiting thread.
|
virtual void | signalAll ()=0 |
| Wakes up all waiting threads.
|
Detailed Description
Condition object for this Synchronizer, which serves as the basis for other Lock objects.
Constructor & Destructor Documentation
decaf::util::concurrent::locks::AbstractQueuedSynchronizer::ConditionObject::ConditionObject |
( |
| ) |
|
|
inline |
virtual decaf::util::concurrent::locks::AbstractQueuedSynchronizer::ConditionObject::~ConditionObject |
( |
| ) |
|
|
inlinevirtual |
Member Function Documentation
virtual Collection<decaf::lang::Thread*>* decaf::util::concurrent::locks::AbstractQueuedSynchronizer::ConditionObject::getWaitingThreads |
( |
| ) |
const |
|
protectedpure virtual |
Retrieves a new Collection object that contains Threads that may be waiting on this Condition object.
- Returns
- new Collection object that holds possible waiters. Caller owns.
virtual int decaf::util::concurrent::locks::AbstractQueuedSynchronizer::ConditionObject::getWaitQueueLength |
( |
| ) |
const |
|
protectedpure virtual |
Calculates and returns an estimate of the number of Threads that are waiting on this Condition object.
- Returns
- count of the estimated number of waiting threads.
virtual bool decaf::util::concurrent::locks::AbstractQueuedSynchronizer::ConditionObject::hasWaiters |
( |
| ) |
const |
|
protectedpure virtual |
Returns true if there are any waiters on this Condition object at the time of its calling.
- Returns
- true if there are currently waiters false otherwise.
Friends And Related Function Documentation
The documentation for this class was generated from the following file: