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.59 by jsr166, Fri Feb 1 18:26:06 2019 UTC vs.
Revision 1.60 by jsr166, Sat Feb 2 04:02:49 2019 UTC

# Line 69 | Line 69 | import java.util.concurrent.locks.Reentr
69   *   }
70   * }}</pre>
71   *
72 < * Here, each worker thread processes a row of the matrix then waits at the
73 < * barrier until all rows have been processed. When all rows are processed
74 < * the supplied {@link Runnable} barrier action is executed and merges the
75 < * rows. If the merger
76 < * determines that a solution has been found then {@code done()} will return
77 < * {@code true} and each worker will terminate.
72 > * Here, each worker thread processes a row of the matrix, then waits at the
73 > * barrier until all rows have been processed. When all rows are processed the
74 > * supplied {@link Runnable} barrier action is executed and merges the rows.
75 > * If the merger determines that a solution has been found then {@code done()}
76 > * will return {@code true} and each worker will terminate.
77   *
78   * <p>If the barrier action does not rely on the parties being suspended when
79   * it is executed, then any of the threads in the party could execute that

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines