|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.concurrent.locks.AbstractQueuedSynchronizer
java.util.concurrent.locks.ReentrantReadWriteLock.Sync
abstract static class ReentrantReadWriteLock.Sync
Synchronization implementation for ReentrantReadWriteLock. Subclassed into fair and nonfair versions.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.util.concurrent.locks.AbstractQueuedSynchronizer |
|---|
AbstractQueuedSynchronizer.ConditionObject, AbstractQueuedSynchronizer.Node |
| Field Summary | |
|---|---|
(package private) Thread |
owner
Current (exclusive) owner thread |
| Constructor Summary | |
|---|---|
ReentrantReadWriteLock.Sync()
|
|
| Method Summary | |
|---|---|
(package private) int |
getCount()
|
(package private) Thread |
getOwner()
|
(package private) int |
getReadLockCount()
|
(package private) int |
getWriteHoldCount()
|
protected boolean |
isHeldExclusively()
Returns true if synchronization is held exclusively with respect to the current (calling) thread. |
(package private) boolean |
isWriteLocked()
|
(package private) AbstractQueuedSynchronizer.ConditionObject |
newCondition()
|
(package private) boolean |
nonfairTryAcquire(int acquires)
Perform non-fair tryLock for write. |
(package private) int |
nonfairTryAcquireShared(int acquires)
Perform nonfair tryLock for read. |
protected boolean |
tryRelease(int releases)
Attempts to set the state to reflect a release in exclusive mode. |
protected boolean |
tryReleaseShared(int releases)
Attempts to set the state to reflect a release in shared mode. |
(package private) abstract void |
wlock()
Perform write lock. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
transient Thread owner
| Constructor Detail |
|---|
ReentrantReadWriteLock.Sync()
| Method Detail |
|---|
abstract void wlock()
final boolean nonfairTryAcquire(int acquires)
final int nonfairTryAcquireShared(int acquires)
protected final boolean tryRelease(int releases)
AbstractQueuedSynchronizerThis method is always invoked by the thread performing release.
The default implementation throws
UnsupportedOperationException
tryRelease in class AbstractQueuedSynchronizerreleases - the release argument. This value
is always the one passed to a release method,
or the current state value upon entry to a condition wait.
The value is otherwise uninterpreted and can represent anything
you like.
protected final boolean tryReleaseShared(int releases)
AbstractQueuedSynchronizerThis method is always invoked by the thread performing release.
The default implementation throws
UnsupportedOperationException
tryReleaseShared in class AbstractQueuedSynchronizerreleases - the release argument. This value
is always the one passed to a release method,
or the current state value upon entry to a condition wait.
The value is otherwise uninterpreted and can represent anything
you like.
protected final boolean isHeldExclusively()
AbstractQueuedSynchronizerAbstractQueuedSynchronizer.ConditionObject method.
(Waiting methods instead invoke AbstractQueuedSynchronizer.release(int).)
The default implementation throws UnsupportedOperationException. This method is invoked
internally only within AbstractQueuedSynchronizer.ConditionObject methods, so need
not be defined if conditions are not used.
isHeldExclusively in class AbstractQueuedSynchronizerfinal AbstractQueuedSynchronizer.ConditionObject newCondition()
final Thread getOwner()
final int getReadLockCount()
final boolean isWriteLocked()
final int getWriteHoldCount()
final int getCount()
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||