Inheritance diagram for ReentrantReadWriteLock::FairSync:
Protected Member Functions | |
final bool | tryAcquire (int acquires) |
final int | tryAcquireShared (int acquires) |
void | wlock () |
Private Member Functions | |
bool | nonfairTryAcquire (int acquires) |
int | nonfairTryAcquireShared (int acquires) |
final bool | tryRelease (int releases) |
final bool | tryReleaseShared (int releases) |
bool | isHeldExclusively () |
ConditionObject | newCondition () |
Thread | getOwner () |
int | getReadLockCount () |
bool | isWriteLocked () |
int | getWriteHoldCount () |
int | getCount () |
Private Attributes | |
Thread | owner |
|
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 373 of file ReadWriteLock.d. References Exception, ReentrantReadWriteLock::exclusiveCount(), and AbstractLock::getFirstQueuedThread(). |
|
Attempts to acquire in shared mode. This method should query if the state of the object permits it to be acquired in the shared 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. The default implementation throws UnsupportedOperationException
Reimplemented from AbstractLock. Definition at line 393 of file ReadWriteLock.d. References Exception, ReentrantReadWriteLock::exclusiveCount(), and AbstractLock::getFirstQueuedThread(). |
|
Reimplemented from ReentrantReadWriteLock::Sync. Definition at line 412 of file ReadWriteLock.d. References AbstractLock::acquire(). |
|
Definition at line 254 of file ReadWriteLock.d. References Exception, ReentrantReadWriteLock::exclusiveCount(), and ReentrantReadWriteLock::Sync::owner. Referenced by ReentrantReadWriteLock::NonfairSync::tryAcquire(), and ReentrantReadWriteLock::WriteLock::tryLock(). |
|
Definition at line 273 of file ReadWriteLock.d. References Exception, ReentrantReadWriteLock::exclusiveCount(), and ReentrantReadWriteLock::Sync::owner. Referenced by ReentrantReadWriteLock::NonfairSync::tryAcquireShared(), and ReentrantReadWriteLock::ReadLock::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 288 of file ReadWriteLock.d. References Exception, ReentrantReadWriteLock::exclusiveCount(), and ReentrantReadWriteLock::Sync::owner. |
|
Attempts to set the state to reflect a release in shared mode. This method is always invoked by the thread performing release. The default implementation throws UnsupportedOperationException.
Reimplemented from AbstractLock. Definition at line 303 of file ReadWriteLock.d. References Exception. |
|
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 314 of file ReadWriteLock.d. References ReentrantReadWriteLock::exclusiveCount(), and ReentrantReadWriteLock::Sync::owner. Referenced by ReentrantReadWriteLock::isWriteLockedByCurrentThread(). |
|
Definition at line 321 of file ReadWriteLock.d. Referenced by ReentrantReadWriteLock::WriteLock::newCondition(). |
|
Definition at line 325 of file ReadWriteLock.d. References ReentrantReadWriteLock::exclusiveCount(), and ReentrantReadWriteLock::Sync::owner. Referenced by ReentrantReadWriteLock::getOwner(), and ReentrantReadWriteLock::WriteLock::toString(). |
|
Definition at line 331 of file ReadWriteLock.d. References ReentrantReadWriteLock::sharedCount(). Referenced by ReentrantReadWriteLock::getReadLockCount(), and ReentrantReadWriteLock::ReadLock::toString(). |
|
Definition at line 335 of file ReadWriteLock.d. References ReentrantReadWriteLock::exclusiveCount(). Referenced by ReentrantReadWriteLock::isWriteLocked(). |
|
Definition at line 339 of file ReadWriteLock.d. References ReentrantReadWriteLock::exclusiveCount(), and ReentrantReadWriteLock::Sync::owner. Referenced by ReentrantReadWriteLock::getWriteHoldCount(). |
|
Definition at line 345 of file ReadWriteLock.d. Referenced by ReentrantReadWriteLock::toString(). |
|