[cvs] / jsr166 / src / main / java / util / concurrent / SynchronousQueue.java Repository:
ViewVC logotype

Diff of /jsr166/src/main/java/util/concurrent/SynchronousQueue.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.61, Thu Aug 18 22:39:13 2005 UTC revision 1.62, Fri Aug 19 12:51:29 2005 UTC
# Line 299  Line 299 
299               *    with corresponding waiting node, pop both from               *    with corresponding waiting node, pop both from
300               *    stack, and return matched item. The matching or               *    stack, and return matched item. The matching or
301               *    unlinking might not actually be necessary because of               *    unlinking might not actually be necessary because of
302               *    another threads performing action 3:               *    other threads performing action 3:
303               *               *
304               * 3. If top of stack already holds another fulfilling node,               * 3. If top of stack already holds another fulfilling node,
305               *    help it out by doing its match and/or pop               *    help it out by doing its match and/or pop
# Line 622  Line 622 
622              for (;;) {              for (;;) {
623                  QNode t = tail;                  QNode t = tail;
624                  QNode h = head;                  QNode h = head;
625                  if (t == null || h == null)         // saw uninitialized values                  if (t == null || h == null)         // saw uninitialized value
626                      continue;                       // spin                      continue;                       // spin
627    
628                  if (h == t || t.isData == isData) { // empty or same-mode                  if (h == t || t.isData == isData) { // empty or same-mode

Legend:
Removed from v.1.61  
changed lines
  Added in v.1.62

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8