- <init>
Creates a new QueuedSynchronizer instance.
- clearOwnerThread
- getQueueLength
Returns an estimate of the number of threads waiting to acquire. The value is
only an estimate becau
- hasQueuedThreads
Queries whether any threads are waiting to acquire. Note that because
cancellations due to interrupt
- signalSharedWaiters
Release action for shared mode -- signals successor and ensures propagation.
(Note: For exclusive mo
- signalWaiters
Signal any waiting threads in the queue.
- toObjectString
- tryAcquireNanos
Attempts to acquire in exclusive mode, aborting if interrupted, and failing if
the given timeout ela
- tryAcquireSharedNanos
Attempts to acquire in shared mode, aborting if interrupted, and failing if the
given timeout elapse
- apparentlyFirstQueuedIsExclusive
Returns true if the apparent first queued thread, if one exists, is waiting in
exclusive mode. If th
- getExclusiveQueuedThreads
Returns a collection containing threads that may be waiting to acquire in
exclusive mode. This has t
- getSharedQueuedThreads
Returns a collection containing threads that may be waiting to acquire in shared
mode. This has the