ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/LinkedBlockingQueue.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/LinkedBlockingQueue.java (file contents):
Revision 1.18 by dl, Mon Aug 25 19:27:58 2003 UTC vs.
Revision 1.19 by dl, Sun Sep 7 15:06:24 2003 UTC

# Line 62 | Line 62 | public class LinkedBlockingQueue<E> exte
62      private final int capacity;
63  
64      /** Current number of elements */
65 <    private transient final AtomicInteger count = new AtomicInteger(0);
65 >    private final AtomicInteger count = new AtomicInteger(0);
66  
67      /** Head of linked list */
68      private transient Node<E> head;
# Line 629 | Line 629 | public class LinkedBlockingQueue<E> exte
629          // Read in capacity, and any hidden stuff
630          s.defaultReadObject();
631  
632 +        count.set(0);
633 +        last = head = new Node<E>(null);
634 +
635          // Read in all elements and place in queue
636          for (;;) {
637              E item = (E)s.readObject();
# Line 638 | Line 641 | public class LinkedBlockingQueue<E> exte
641          }
642      }
643   }
641
642
643
644
645

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines