535 |
|
|
536 |
|
/** |
537 |
|
* Awaits the phase of the barrier to advance from the given phase |
538 |
< |
* value, or returns immediately if current phase of the barrier |
538 |
> |
* value, or returns immediately if the current phase of the barrier |
539 |
|
* is not equal to the given phase value or this barrier is |
540 |
|
* terminated. |
541 |
|
* |
713 |
|
* only sensible to do so in designs where all parties register |
714 |
|
* before any arrive, and all {@link #awaitAdvance} at each phase. |
715 |
|
* Otherwise, you cannot ensure lack of interference from other |
716 |
< |
* parties during the the invocation of this method. |
716 |
> |
* parties during the invocation of this method. |
717 |
|
* |
718 |
|
* @param phase the phase number on entering the barrier |
719 |
|
* @param registeredParties the current number of registered parties |