Package VASSAL.tools.concurrent
Class CountingReadWriteLock.Sync
java.lang.Object
java.util.concurrent.locks.AbstractOwnableSynchronizer
java.util.concurrent.locks.AbstractQueuedSynchronizer
VASSAL.tools.concurrent.CountingReadWriteLock.Sync
- All Implemented Interfaces:
Serializable
- Enclosing class:
- CountingReadWriteLock
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.concurrent.locks.AbstractQueuedSynchronizer
AbstractQueuedSynchronizer.ConditionObject -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleantryAcquire(int dummy)protected inttryAcquireShared(int dummy)protected booleantryRelease(int dummy)protected booleantryReleaseShared(int dummy)Methods inherited from class java.util.concurrent.locks.AbstractQueuedSynchronizer
acquire, acquireInterruptibly, acquireShared, acquireSharedInterruptibly, compareAndSetState, getExclusiveQueuedThreads, getFirstQueuedThread, getQueuedThreads, getQueueLength, getSharedQueuedThreads, getState, getWaitingThreads, getWaitQueueLength, hasContended, hasQueuedPredecessors, hasQueuedThreads, hasWaiters, isHeldExclusively, isQueued, owns, release, releaseShared, setState, toString, tryAcquireNanos, tryAcquireSharedNanosMethods inherited from class java.util.concurrent.locks.AbstractOwnableSynchronizer
getExclusiveOwnerThread, setExclusiveOwnerThread
-
Constructor Details
-
Sync
protected Sync()
-
-
Method Details
-
tryAcquire
protected boolean tryAcquire(int dummy)- Overrides:
tryAcquirein classAbstractQueuedSynchronizer
-
tryRelease
protected boolean tryRelease(int dummy)- Overrides:
tryReleasein classAbstractQueuedSynchronizer
-