ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/jsr166y/Phaser.java
(Generate patch)

Comparing jsr166/src/jsr166y/Phaser.java (file contents):
Revision 1.36 by dl, Sun Aug 23 20:12:24 2009 UTC vs.
Revision 1.37 by jsr166, Mon Aug 24 00:48:52 2009 UTC

# Line 12 | Line 12 | import java.util.concurrent.atomic.Atomi
12   import java.util.concurrent.locks.LockSupport;
13  
14   /**
15 < * A reusable synchronization barrier, similar in functionality to a
15 > * A reusable synchronization barrier, similar in functionality to
16   * {@link java.util.concurrent.CyclicBarrier CyclicBarrier} and
17   * {@link java.util.concurrent.CountDownLatch CountDownLatch}
18   * but supporting more flexible usage.
# Line 27 | Line 27 | import java.util.concurrent.locks.LockSu
27   * #arriveAndDeregister}).  As is the case with most basic
28   * synchronization constructs, registration and deregistration affect
29   * only internal counts; they do not establish any further internal
30 < * bookkeeping, so tasks cannot query whether they are
31 < * registered. (However, you can introduce such bookkeeping by
32 < * subclassing this class.)
30 > * bookkeeping, so tasks cannot query whether they are registered.
31 > * (However, you can introduce such bookkeeping by subclassing this
32 > * class.)
33   *
34   * <li> Each generation has an associated phase number. The phase
35   * number starts at zero, amd advances when all parties arrive at the

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines