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.39 by dl, Mon Aug 24 12:15:46 2009 UTC vs.
Revision 1.40 by dl, Mon Aug 24 12:49:39 2009 UTC

# Line 97 | Line 97 | import java.util.concurrent.locks.LockSu
97   * <p><b>Monitoring.</b> While synchronization methods may be invoked
98   * only by registered parties, the current state of a phaser may be
99   * monitored by any caller.  At any given moment there are {@link
100 < * #getRegisteredParties}, where {@link #getArrivedParties} have
101 < * arrived at the current phase ({@link #getPhase}). When the
102 < * remaining {@link #getUnarrivedParties}) arrive, the phase
103 < * advances. Method {@link #toString} returns snapshots of these state
104 < * queries in a form convenient for informal monitoring.
100 > * #getRegisteredParties} parties in total, of which {@link
101 > * #getArrivedParties} have arrived at the current phase ({@link
102 > * #getPhase}).  When the remaining ({@link #getUnarrivedParties})
103 > * parties arrive, the phase advances; thus, this value is always
104 > * greater than zero if there are any registered parties.  The values
105 > * returned by these methods may reflect transient states and so are
106 > * not in general useful for synchronization control.  Method {@link
107 > * #toString} returns snapshots of these state queries in a form
108 > * convenient for informal monitoring.
109   *
110   * <p><b>Sample usages:</b>
111   *

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines