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>
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: