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