[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.101, Sat Dec 24 08:29:02 2016 UTC revision 1.102, Sat Dec 24 08:44:42 2016 UTC
# Line 675  Line 675 
675                  return itemE;                  return itemE;
676              }              }
677              else if (w.isInterrupted() || (timed && nanos <= 0L)) {              else if (w.isInterrupted() || (timed && nanos <= 0L)) {
678                  unsplice(pred, s);           // try to unlink and cancel                  // try to cancel and unlink
679                  if (s.casItem(e, s))         // return normally if lost CAS                  if (s.casItem(e, s)) {
680                        unsplice(pred, s);
681                      return e;                      return e;
682              }              }
683                    // return normally if lost CAS
684                }
685              else if (spins < 0) {            // establish spins at/near front              else if (spins < 0) {            // establish spins at/near front
686                  if ((spins = spinsFor(pred, s.isData)) > 0)                  if ((spins = spinsFor(pred, s.isData)) > 0)
687                      randomYields = ThreadLocalRandom.current();                      randomYields = ThreadLocalRandom.current();

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

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8