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

Comparing jsr166/src/main/java/util/concurrent/CyclicBarrier.java (file contents):
Revision 1.53 by jsr166, Wed Dec 31 07:54:13 2014 UTC vs.
Revision 1.54 by jsr166, Tue Feb 17 18:55:39 2015 UTC

# Line 26 | Line 26 | import java.util.concurrent.locks.Reentr
26   * <p><b>Sample usage:</b> Here is an example of using a barrier in a
27   * parallel decomposition design:
28   *
29 < *  <pre> {@code
29 > * <pre> {@code
30   * class Solver {
31   *   final int N;
32   *   final float[][] data;
# Line 83 | Line 83 | import java.util.concurrent.locks.Reentr
83   * {@link #await} returns the arrival index of that thread at the barrier.
84   * You can then choose which thread should execute the barrier action, for
85   * example:
86 < *  <pre> {@code
86 > * <pre> {@code
87   * if (barrier.await() == 0) {
88   *   // log the completion of this iteration
89   * }}</pre>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines