- attemptReadLock
An attempt to acquire reader lock should succeed when there are no writer locks
already taken (by ca
- attemptWriteLock
An attempt to acquire write lock should succeed when there are no read locks
already taken ( #attemp
- releaseReadLock
Releases in shared mode. Implemented by unblocking one or more threads if
#tryReleaseShared(int,Obje
- releaseWriteLock
Releases in exclusive mode. Implemented by unblocking one or more threads.
- toString
Returns a string identifying this synchronizer's state. The state, in brackets,
includes the String
- <init>
- compareAndSet
- getCancelCriterion
Return the CancelCriterion for this lock.
- getMaxMillis
- getState
Returns the current value of synchronization state. This operation has memory
semantics of a volatil
- getWaitThreshold
Return the wait time after to try for the lock in a loop after which a warning
is logged.
- numReaders