activemq-cpp-3.6.0
decaf::util::concurrent::locks::AbstractQueuedSynchronizer::ConditionObject Class Reference

Condition object for this Synchronizer, which serves as the basis for other Lock objects. More...

#include <src/main/decaf/util/concurrent/locks/AbstractQueuedSynchronizer.h>

Inheritance diagram for decaf::util::concurrent::locks::AbstractQueuedSynchronizer::ConditionObject:

Public Member Functions

 ConditionObject ()
virtual ~ConditionObject ()
- Public Member Functions inherited from decaf::util::concurrent::locks::Condition
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.

Protected Member Functions

virtual bool isOwnedBy (const AbstractQueuedSynchronizer *sync) const =0
 Used to check on the ownership status of this ConditionObject.
virtual bool hasWaiters () const =0
 Returns true if there are any waiters on this Condition object at the time of its calling.
virtual int getWaitQueueLength () const =0
 Calculates and returns an estimate of the number of Threads that are waiting on this Condition object.
virtual Collection
< decaf::lang::Thread * > * 
getWaitingThreads () const =0
 Retrieves a new Collection object that contains Threads that may be waiting on this Condition object.

Friends

class AbstractQueuedSynchronizer

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.
virtual bool decaf::util::concurrent::locks::AbstractQueuedSynchronizer::ConditionObject::isOwnedBy ( const AbstractQueuedSynchronizer sync) const
protectedpure virtual

Used to check on the ownership status of this ConditionObject.

Returns
true if the ConditionObject is owned by the given AbstractQueuedSynchronizer

Friends And Related Function Documentation

friend class AbstractQueuedSynchronizer
friend

The documentation for this class was generated from the following file: