static final class ReentrantReadWriteLock.FairSync extends ReentrantReadWriteLock.Sync
ReentrantReadWriteLock.Sync.HoldCounter, ReentrantReadWriteLock.Sync.ThreadLocalHoldCounterAbstractQueuedSynchronizer.ConditionObject, AbstractQueuedSynchronizer.NodecachedHoldCounter, EXCLUSIVE_MASK, MAX_COUNT, readHolds, SHARED_SHIFT, SHARED_UNITspinForTimeoutThreshold| Constructor and Description |
|---|
ReentrantReadWriteLock.FairSync() |
| Modifier and Type | Method and Description |
|---|---|
(package private) boolean |
readerShouldBlock(Thread current)
Return true if a reader thread that is otherwise
eligible for lock should block because of policy
for overtaking other waiting threads.
|
(package private) boolean |
writerShouldBlock(Thread current)
Return true if a writer thread that is otherwise
eligible for lock should block because of policy
for overtaking other waiting threads.
|
exclusiveCount, fullTryAcquireShared, getCount, getOwner, getReadHoldCount, getReadLockCount, getWriteHoldCount, isHeldExclusively, isWriteLocked, newCondition, sharedCount, tryAcquire, tryAcquireShared, tryReadLock, tryRelease, tryReleaseShared, tryWriteLockacquire, acquireInterruptibly, acquireQueued, acquireShared, acquireSharedInterruptibly, apparentlyFirstQueuedIsExclusive, compareAndSetState, fullIsFirst, fullyRelease, getExclusiveQueuedThreads, getFirstQueuedThread, getQueuedThreads, getQueueLength, getSharedQueuedThreads, getState, getWaitingThreads, getWaitQueueLength, hasContended, hasQueuedThreads, hasWaiters, isFirst, isOnSyncQueue, isQueued, owns, release, releaseShared, setState, toString, transferAfterCancelledWait, transferForSignal, tryAcquireNanos, tryAcquireSharedNanosgetExclusiveOwnerThread, setExclusiveOwnerThreadReentrantReadWriteLock.FairSync()
final boolean writerShouldBlock(Thread current)
ReentrantReadWriteLock.SyncwriterShouldBlock in class ReentrantReadWriteLock.Syncfinal boolean readerShouldBlock(Thread current)
ReentrantReadWriteLock.SyncreaderShouldBlock in class ReentrantReadWriteLock.Sync