44 |
|
* |
45 |
|
* <ul> |
46 |
|
* |
47 |
< |
* <li> <b>Arrival.</b> Methods {@link #arrive} and |
47 |
> |
* <li><b>Arrival.</b> Methods {@link #arrive} and |
48 |
|
* {@link #arriveAndDeregister} record arrival. These methods |
49 |
|
* do not block, but return an associated <em>arrival phase |
50 |
|
* number</em>; that is, the phase number of the phaser to which |
57 |
|
* flexible than, providing a barrier action to a {@code |
58 |
|
* CyclicBarrier}. |
59 |
|
* |
60 |
< |
* <li> <b>Waiting.</b> Method {@link #awaitAdvance} requires an |
60 |
> |
* <li><b>Waiting.</b> Method {@link #awaitAdvance} requires an |
61 |
|
* argument indicating an arrival phase number, and returns when |
62 |
|
* the phaser advances to (or is already at) a different phase. |
63 |
|
* Unlike similar constructions using {@code CyclicBarrier}, |