Lines Matching defs:condition

120      * inserted into a condition queue.  Upon signal, the node is
139 /** waitStatus value to indicate thread is waiting on condition */
159 * CONDITION: This node is currently on a condition queue.
178 * CONDITION for condition nodes. It is modified using CAS
218 * Link to next node waiting on condition, or the special
219 * value SHARED. Because condition queues are accessed only
598 * queue. Used by condition wait methods as well as acquire.
812 * to a condition wait. The value is otherwise uninterpreted
837 * entry to a condition wait. The value is otherwise
867 * to a condition wait. The value is otherwise uninterpreted
898 * entry to a condition wait. The value is otherwise
1374 * a condition queue, is now waiting to reacquire on sync queue.
1411 * Transfers a node from a condition queue onto sync queue.
1463 * @param node the condition node for this wait
1488 * @param condition the condition
1490 * @throws NullPointerException if the condition is null
1492 public final boolean owns(ConditionObject condition) {
1493 return condition.isOwnedBy(this);
1497 * Queries whether any threads are waiting on the given condition
1504 * @param condition the condition
1508 * @throws IllegalArgumentException if the given condition is
1510 * @throws NullPointerException if the condition is null
1512 public final boolean hasWaiters(ConditionObject condition) {
1513 if (!owns(condition))
1515 return condition.hasWaiters();
1520 * given condition associated with this synchronizer. Note that
1526 * @param condition the condition
1530 * @throws IllegalArgumentException if the given condition is
1532 * @throws NullPointerException if the condition is null
1534 public final int getWaitQueueLength(ConditionObject condition) {
1535 if (!owns(condition))
1537 return condition.getWaitQueueLength();
1542 * waiting on the given condition associated with this
1548 * @param condition the condition
1552 * @throws IllegalArgumentException if the given condition is
1554 * @throws NullPointerException if the condition is null
1556 public final Collection<Thread> getWaitingThreads(ConditionObject condition) {
1557 if (!owns(condition))
1559 return condition.getWaitingThreads();
1571 * condition semantics that rely on those of the associated
1581 /** First node of condition queue. */
1583 /** Last node of condition queue. */
1617 * @param first (non-null) the first node on condition queue
1630 * @param first (non-null) the first node on condition queue
1643 * Unlinks cancelled waiter nodes from condition queue.
1645 * cancellation occurred during condition wait, and upon
1680 * wait queue for this condition to the wait queue for the
1695 * Moves all threads from the wait queue for this condition to
1710 * Implements uninterruptible condition wait.
1736 * condition, versus reinterrupt current thread, if
1769 * Implements interruptible condition wait.
1801 * Implements timed condition wait.
1842 * Implements absolute timed condition wait.
1883 * Implements timed condition wait.
1929 * Returns true if this condition was created by the given
1939 * Queries whether any threads are waiting on this condition.
1958 * this condition.