Home | History | Annotate | Download | only in locks

Lines Matching defs:waitStatus

386         /** waitStatus value to indicate thread has cancelled. */
388 /** waitStatus value to indicate successor's thread needs unparking. */
390 /** waitStatus value to indicate thread is waiting on condition. */
393 * waitStatus value to indicate the next acquireShared should
432 volatile int waitStatus;
436 * for checking waitStatus. Assigned during enqueuing, and nulled
512 Node(int waitStatus) {
513 U.putInt(this, WAITSTATUS, waitStatus);
517 /** CASes waitStatus field. */
519 return U.compareAndSwapInt(this, WAITSTATUS, expect, update);
531 private static final long WAITSTATUS;
540 WAITSTATUS = U.objectFieldOffset
541 (Node.class.getDeclaredField("waitStatus"));
551 * If head exists, its waitStatus is guaranteed not to be
676 int ws = node.waitStatus;
687 if (s == null || s.waitStatus > 0) {
690 if (p.waitStatus <= 0)
717 int ws = h.waitStatus;
746 * or was recorded (as h.waitStatus either before
748 * (note: this uses sign-check of waitStatus because
759 if (propagate > 0 || h == null || h.waitStatus < 0 ||
760 (h = head) == null || h.waitStatus < 0) {
783 while (pred.waitStatus > 0)
794 waitStatus = Node.CANCELLED;
804 ((ws = pred.waitStatus) == Node.SIGNAL ||
808 if (next != null && next.waitStatus <= 0)
828 int ws = pred.waitStatus;
842 } while (pred.waitStatus > 0);
846 * waitStatus must be 0 or PROPAGATE. Indicate that we
1287 if (h != null && h.waitStatus != 0)
1652 if (node.waitStatus == Node.CONDITION || node.prev == null)
1694 * If cannot change waitStatus, the node has been cancelled.
1700 * Splice onto queue and try to set waitStatus of predecessor to
1702 * attempt to set waitStatus fails, wake up to resync (in which
1703 * case the waitStatus can be transiently and harmlessly wrong).
1706 int ws = p.waitStatus;
1748 node.waitStatus = Node.CANCELLED;
1869 if (t != null && t.waitStatus != Node.CONDITION) {
1932 if (t.waitStatus != Node.CONDITION) {
2227 if (w.waitStatus == Node.CONDITION)
2247 if (w.waitStatus == Node.CONDITION)
2267 if (w.waitStatus == Node.CONDITION) {