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

Comparing jsr166/src/main/java/util/concurrent/CountDownLatch.java (file contents):
Revision 1.2 by dl, Tue May 27 18:14:39 2003 UTC vs.
Revision 1.3 by dl, Sat Jun 7 18:20:20 2003 UTC

# Line 7 | Line 7
7   package java.util.concurrent;
8  
9   /**
10 < * A <tt>CountDownLatch</tt> allows one set of threads to wait until
11 < * the actions of another set of threads allow the first set to proceed.
12 < * <p>A <tt>CountDownLatch</tt> is initialized with a given <em>count</em>.
13 < * The {@link #await} methods block until the current {@link #getCount count}
14 < * reaches zero due to invocations of the {@link #countDown} method,
15 < * after which all waiting threads are
10 > * A synchronization aid that allows a set of threads to wait until
11 > * the actions of another set of threads allow the first set to
12 > * proceed.
13 > *
14 > * <p>A <tt>CountDownLatch</tt> is initialized with a given
15 > * <em>count</em>.  The {@link #await} methods block until the current
16 > * {@link #getCount count} reaches zero due to invocations of the
17 > * {@link #countDown} method, after which all waiting threads are
18   * released and any subsequent invocations of {@link #await} return
19 < * immediately. This is a one-shot phenomenon -- the count
20 < * cannot be reset.  If you need a version that resets the count,
21 < * consider using a {@link CyclicBarrier}.
19 > * immediately. This is a one-shot phenomenon -- the count cannot be
20 > * reset.  If you need a version that resets the count, consider using
21 > * a {@link CyclicBarrier}.
22   *
23   * <p>A <tt>CountDownLatch</tt> is a versatile synchronization tool
24   * and can be used for a number of purposes.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines