[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.100, Sat Dec 24 04:32:50 2016 UTC revision 1.101, Sat Dec 24 08:29:02 2016 UTC
# Line 441  Line 441 
441           * Constructs a new node.  Uses relaxed write because item can           * Constructs a new node.  Uses relaxed write because item can
442           * only be seen after publication via casNext.           * only be seen after publication via casNext.
443           */           */
444          Node(Object item, boolean isData) {          Node(Object item) {
445              ITEM.set(this, item); // relaxed write              ITEM.set(this, item); // relaxed write
446              this.isData = isData;              isData = (item != null);
447          }          }
448    
449          /**          /**
# Line 602  Line 602 
602    
603              if (how != NOW) {                 // No matches available              if (how != NOW) {                 // No matches available
604                  if (s == null)                  if (s == null)
605                      s = new Node(e, haveData);                      s = new Node(e);
606                  Node pred = tryAppend(s, haveData);                  Node pred = tryAppend(s, haveData);
607                  if (pred == null)                  if (pred == null)
608                      continue retry;           // lost race vs opposite mode                      continue retry;           // lost race vs opposite mode

Legend:
Removed from v.1.100  
changed lines
  Added in v.1.101

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8