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

Comparing jsr166/src/main/java/util/concurrent/BlockingQueue.java (file contents):
Revision 1.48 by dl, Thu Apr 21 11:30:11 2011 UTC vs.
Revision 1.49 by jsr166, Thu Jun 9 07:48:43 2011 UTC

# Line 98 | Line 98 | import java.util.Queue;
98   * Usage example, based on a typical producer-consumer scenario.
99   * Note that a <tt>BlockingQueue</tt> can safely be used with multiple
100   * producers and multiple consumers.
101 < * <pre>
101 > *  <pre> {@code
102   * class Producer implements Runnable {
103   *   private final BlockingQueue queue;
104   *   Producer(BlockingQueue q) { queue = q; }
# Line 131 | Line 131 | import java.util.Queue;
131   *     new Thread(c1).start();
132   *     new Thread(c2).start();
133   *   }
134 < * }
135 < * </pre>
134 > * }}</pre>
135   *
136   * <p>Memory consistency effects: As with other concurrent
137   * collections, actions in a thread prior to placing an object into a

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines