Inheritance diagram for ReentrantLock::FairSync:
Public Member Functions | |
void | lock () |
Protected Member Functions | |
final bool | tryAcquire (int acquires) |
Private Member Functions | |
bool | nonfairTryAcquire (int acquires) |
bool | tryRelease (int releases) |
bool | isHeldExclusively () |
ConditionObject | newCondition () |
Thread | getOwner () |
int | getHoldCount () |
bool | isLocked () |
Private Attributes | |
Thread | owner |
|
Reimplemented from ReentrantLock::Sync. Definition at line 195 of file ReentrantLock.d. References AbstractLock::acquire(). |
|
Attempts to acquire in exclusive mode. This method should query if the state of the object permits it to be acquired in the exclusive mode, and if so to acquire it. This method is always invoked by the thread performing acquire. If this method reports failure, the acquire method may queue the thread, if it is not already queued, until it is signalled by a release from some other thread. This can be used to implement method tryLock(). The default implementation throws UnsupportedOperationException
Reimplemented from AbstractLock. Definition at line 203 of file ReentrantLock.d. References AbstractLock::getFirstQueuedThread(). |
|
Definition at line 114 of file ReentrantLock.d. References ReentrantLock::Sync::owner. Referenced by ReentrantLock::NonfairSync::tryAcquire(), and ReentrantLock::tryLock(). |
|
Attempts to set the state to reflect a release in exclusive mode. This method is always invoked by the thread performing release. The default implementation throws UnsupportedOperationException
Reimplemented from AbstractLock. Definition at line 130 of file ReentrantLock.d. References ReentrantLock::Sync::owner. |
|
Returns true if synchronization is held exclusively with respect to the current (calling) thread. This method is invoked upon each call to a non-waiting ConditionObject method. (Waiting methods instead invoke release.) The default implementation throws UnsupportedOperationException. This method is invoked internally only within ConditionObject methods, so need not be defined if conditions are not used.
Reimplemented from AbstractLock. Definition at line 143 of file ReentrantLock.d. References ReentrantLock::Sync::owner. Referenced by ReentrantLock::isHeldByCurrentThread(). |
|
Definition at line 147 of file ReentrantLock.d. Referenced by ReentrantLock::newCondition(). |
|
Definition at line 153 of file ReentrantLock.d. References ReentrantLock::Sync::owner. Referenced by ReentrantLock::getOwner(), and ReentrantLock::toString(). |
|
Definition at line 159 of file ReentrantLock.d. References ReentrantLock::Sync::owner. Referenced by ReentrantLock::getHoldCount(). |
|
Definition at line 165 of file ReentrantLock.d. Referenced by ReentrantLock::isLocked(). |
|
Definition at line 101 of file ReentrantLock.d. Referenced by ReentrantLock::Sync::getHoldCount(), ReentrantLock::Sync::getOwner(), ReentrantLock::Sync::isHeldExclusively(), ReentrantLock::Sync::nonfairTryAcquire(), and ReentrantLock::Sync::tryRelease(). |