[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.149, Mon Jan 16 21:49:26 2017 UTC revision 1.150, Mon Jan 16 22:14:28 2017 UTC
# Line 1179  Line 1179 
1179       */       */
1180      final void unsplice(Node pred, Node s) {      final void unsplice(Node pred, Node s) {
1181          // assert pred != null;          // assert pred != null;
1182            // assert pred != s;
1183          // assert s != null;          // assert s != null;
1184          // assert s.isMatched();          // assert s.isMatched();
1185          s.waiter = null; // disable signals          s.waiter = null; // disable signals
# Line 1189  Line 1190 
1190           * nor s are head or offlist, add to sweepVotes, and if enough           * nor s are head or offlist, add to sweepVotes, and if enough
1191           * votes have accumulated, sweep.           * votes have accumulated, sweep.
1192           */           */
1193          if (pred != null && pred != s && pred.next == s) {          if (pred != null && pred.next == s) {
1194              Node n = s.next;              Node n = s.next;
1195              if (n == null ||              if (n == null ||
1196                  (n != s && pred.casNext(s, n) && pred.isMatched())) {                  (n != s && pred.casNext(s, n) && pred.isMatched())) {

Legend:
Removed from v.1.149  
changed lines
  Added in v.1.150

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8