ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/jsr166y/LinkedTransferQueue.java
(Generate patch)

Comparing jsr166/src/jsr166y/LinkedTransferQueue.java (file contents):
Revision 1.81 by jsr166, Sun Nov 14 20:34:47 2010 UTC vs.
Revision 1.83 by jsr166, Tue Mar 15 19:47:02 2011 UTC

# Line 1 | Line 1
1   /*
2   * Written by Doug Lea with assistance from members of JCP JSR-166
3   * Expert Group and released to the public domain, as explained at
4 < * http://creativecommons.org/licenses/publicdomain
4 > * http://creativecommons.org/publicdomain/zero/1.0/
5   */
6  
7   package jsr166y;
# Line 572 | Line 572 | public class LinkedTransferQueue<E> exte
572                      if (p.casItem(item, e)) { // match
573                          for (Node q = p; q != h;) {
574                              Node n = q.next;  // update by 2 unless singleton
575 <                            if (head == h && casHead(h, n == null? q : n)) {
575 >                            if (head == h && casHead(h, n == null ? q : n)) {
576                                  h.forgetNext();
577                                  break;
578                              }                 // advance and retry

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines