decaf::util::concurrent::locks::AbstractOwnableSynchronizer Class Reference

Base class for locks that provide the notion of Ownership, the types of locks that are implemented using this base class would be owned by one specific Thread at any given time. More...

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

Inheritance diagram for decaf::util::concurrent::locks::AbstractOwnableSynchronizer:
Inheritance graph
[legend]

Public Member Functions

virtual ~AbstractOwnableSynchronizer ()

Protected Member Functions

 AbstractOwnableSynchronizer ()
decaf::lang::ThreadgetExclusiveOwnerThread () const
 Gets the Thread that was last set using the setExclusiveOwnerThread method, or NULL if no Thread has been made the exclusive owner.
void setExclusiveOwnerThread (decaf::lang::Thread *thread)
 Sets the Thread that has exclusive ownership of this Synchronizer, can be NULL to indicate that no Thread now owns this Synchronizer.

Detailed Description

Base class for locks that provide the notion of Ownership, the types of locks that are implemented using this base class would be owned by one specific Thread at any given time.

Since:
1.0

Constructor & Destructor Documentation

virtual decaf::util::concurrent::locks::AbstractOwnableSynchronizer::~AbstractOwnableSynchronizer (  )  [virtual]
decaf::util::concurrent::locks::AbstractOwnableSynchronizer::AbstractOwnableSynchronizer (  )  [protected]

Member Function Documentation

decaf::lang::Thread* decaf::util::concurrent::locks::AbstractOwnableSynchronizer::getExclusiveOwnerThread (  )  const [protected]

Gets the Thread that was last set using the setExclusiveOwnerThread method, or NULL if no Thread has been made the exclusive owner.

Returns:
pointer to the owner Thread or NULL if not set.
void decaf::util::concurrent::locks::AbstractOwnableSynchronizer::setExclusiveOwnerThread ( decaf::lang::Thread thread  )  [protected]

Sets the Thread that has exclusive ownership of this Synchronizer, can be NULL to indicate that no Thread now owns this Synchronizer.

Parameters:
thread The Thread that now has ownership, or NULL if ownership is released.

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