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

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

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

revision 1.90, Sat Jun 13 16:52:11 2015 UTC revision 1.91, Sat Jun 13 17:06:03 2015 UTC
# Line 749  Line 749 
749       * self-linked before using.       * self-linked before using.
750       */       */
751      final Node firstDataNode() {      final Node firstDataNode() {
752            restartFromHead: for (;;) {
753          for (Node p = head; p != null;) {          for (Node p = head; p != null;) {
754              Object item = p.item;              Object item = p.item;
755              if (p.isData) {              if (p.isData) {
# Line 758  Line 759 
759              else if (item == null)              else if (item == null)
760                  break;                  break;
761              if (p == (p = p.next))              if (p == (p = p.next))
762                  p = head;                      continue restartFromHead;
763          }          }
764          return null;          return null;
765      }      }
766        }
767    
768      /**      /**
769       * Returns the item in the first unmatched node with isData; or       * Returns the item in the first unmatched node with isData; or

Legend:
Removed from v.1.90  
changed lines
  Added in v.1.91

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8