[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.39, Tue Mar 15 19:47:03 2011 UTC revision 1.40, Fri Apr 22 11:51:43 2011 UTC
# Line 22  Line 22 
22   * producer.  The <em>tail</em> of the queue is that element that has   * producer.  The <em>tail</em> of the queue is that element that has
23   * been on the queue the shortest time for some producer.   * been on the queue the shortest time for some producer.
24   *   *
25   * <p>Beware that, unlike in most collections, the {@code size}   * <p>Beware that, unlike in most collections, the {@code size} method
26   * method is <em>NOT</em> a constant-time operation. Because of the   * is <em>NOT</em> a constant-time operation. Because of the
27   * asynchronous nature of these queues, determining the current number   * asynchronous nature of these queues, determining the current number
28   * of elements requires a traversal of the elements.   * of elements requires a traversal of the elements, and so may report
29     * inaccurate results if this collection is modified during traversal.
30     * Additionally, the bulk operations <tt>addAll</tt>,
31     * <tt>removeAll</tt>, <tt>retainAll</tt>, <tt>containsAll</tt>,
32     * <tt>equals</tt>, and <tt>toArray</tt> are <em>not</em> guaranteed
33     * to be performed atomically. For example, an iterator operating
34     * concurrently with an <tt>addAll</tt> operation might view only some
35     * of the added elements.
36   *   *
37   * <p>This class and its iterator implement all of the   * <p>This class and its iterator implement all of the
38   * <em>optional</em> methods of the {@link Collection} and {@link   * <em>optional</em> methods of the {@link Collection} and {@link

Legend:
Removed from v.1.39  
changed lines
  Added in v.1.40

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8