- <init>
Creates a new ConditionObject instance.
- addConditionWaiter
Adds a new waiter to wait queue.
- checkInterruptWhileWaiting
Checks for interrupt, returning THROW_IE if interrupted before signalled,
REINTERRUPT if after signa
- doSignal
Removes and transfers nodes until hit non-cancelled one or null. Split out from
signal in part to en
- doSignalAll
Removes and transfers all nodes.
- getWaitQueueLength
Returns an estimate of the number of threads waiting on this condition.
Implements AbstractQueuedSyn
- getWaitingThreads
Returns a collection containing those threads that may be waiting on this
Condition. Implements Abst
- hasWaiters
Queries whether any threads are waiting on this condition. Implements
AbstractQueuedSynchronizer#has
- isOwnedBy
Returns true if this condition was created by the given synchronization object.
- unlinkCancelledWaiters
Unlinks cancelled waiter nodes from condition queue. Called only while holding
lock. This is called
- await
Implements timed condition wait. 1. If current thread is interrupted, throw
InterruptedExceptio
- awaitNanos
Implements timed condition wait. 1. If current thread is interrupted, throw
InterruptedExceptio