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.7 by dl, Tue Aug 5 22:50:28 2003 UTC vs.
Revision 1.8 by dl, Tue Aug 5 23:59:16 2003 UTC

# Line 383 | Line 383 | public class CyclicBarrier {
383      /**
384       * Reset the barrier to its initial state.  If any parties are
385       * currently waiting at the barrier, they will return with a
386 <     * {@link BrokenBarrierException}.
386 >     * {@link BrokenBarrierException}. Note that resets <em>after</em>
387 >     * a breakage can be complicated to carry out; threads need to
388 >     * re-synchronize in some other way, and choose one to perform the
389 >     * reset.  It may be preferable to instead create a new barrier
390 >     * for subsequent use.
391       */
392      public void reset() {
393          lock.lock();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines