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:
Inheritance graph
[legend]

Public Member Functions

 ConditionObject ()
virtual ~ConditionObject ()

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 (  )  [inline, virtual]

Member Function Documentation

virtual Collection<decaf::lang::Thread*>* decaf::util::concurrent::locks::AbstractQueuedSynchronizer::ConditionObject::getWaitingThreads (  )  const [protected, pure 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 [protected, pure 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 [protected, pure 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 [protected, pure 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:

Generated on 1 Dec 2014 for activemq-cpp-3.8.2 by  doxygen 1.6.1