Lines Matching refs:next

119      * <p>We also use "next" links to implement blocking mechanics.
121 * predecessor signals the next node to wake up by traversing
122 * next link to determine which thread it is. Determination of
124 * the "next" fields of their predecessors. This is solved
127 * (Or, said differently, the next-links are an optimization
170 * waitStatus value to indicate the next acquireShared should
229 * assign next field of a predecessor until after attachment,
230 * so seeing a null next field does not necessarily mean that
231 * node is at end of queue. However, if a next field appears
233 * double-check. The next field of cancelled nodes is set to
237 volatile Node next;
246 * Link to next node waiting on condition, or the special
369 t.next = node;
389 pred.next = node;
427 * just the next node. But if cancelled or apparently null,
431 Node s = node.next;
489 * Try to signal next queued node if:
495 * The next node is waiting in shared mode,
504 Node s = node.next;
532 Node predNext = pred.next;
543 // If successor needs signal, try to set pred's next-link
550 Node next = node.next;
551 if (next != null && next.waitStatus <= 0)
552 compareAndSetNext(pred, predNext, next);
557 node.next = node; // help GC
586 pred.next = node;
640 p.next = null; // help GC
667 p.next = null; // help GC
698 p.next = null; // help GC
734 p.next = null; // help GC
766 p.next = null; // help GC
801 p.next = null; // help GC
1175 * The first node is normally head.next. Try to get its
1184 if (((h = head) != null && (s = h.next) != null &&
1186 ((h = head) != null && (s = h.next) != null &&
1191 * Head's next field might not have been set yet, or may have
1240 (s = h.next) != null &&
1290 // before tail and on head.next being accurate if the current
1296 ((s = h.next) == null || s.thread != Thread.currentThread());
1410 if (node.next != null) // If has successor, it must be on queue
1667 Node next = first.nextWaiter;
1670 first = next;
1692 Node next = t.nextWaiter;
1696 firstWaiter = next;
1698 trail.nextWaiter = next;
1699 if (next == null)
1704 t = next;
2072 (Node.class.getDeclaredField("next"));
2102 * CAS next field of a node.