538 |
|
* is terminated. |
539 |
|
* |
540 |
|
* @param phase the phase on entry to this method |
541 |
< |
* @return the phase on exit from this method |
541 |
> |
* @return the current barrier phase number upon exit of |
542 |
> |
* this method, or a negative value if terminated or |
543 |
> |
* argument is negative |
544 |
|
*/ |
545 |
|
public int awaitAdvance(int phase) { |
546 |
|
if (phase < 0) |
563 |
|
* is terminated. |
564 |
|
* |
565 |
|
* @param phase the phase on entry to this method |
566 |
< |
* @return the phase on exit from this method |
566 |
> |
* @return the current barrier phase number upon exit of |
567 |
> |
* this method, or a negative value if terminated or |
568 |
> |
* argument is negative |
569 |
|
* @throws InterruptedException if thread interrupted while waiting |
570 |
|
*/ |
571 |
|
public int awaitAdvanceInterruptibly(int phase) |
593 |
|
* {@code unit} |
594 |
|
* @param unit a {@code TimeUnit} determining how to interpret the |
595 |
|
* {@code timeout} parameter |
596 |
< |
* @return the phase on exit from this method |
596 |
> |
* @return the current barrier phase number upon exit of |
597 |
> |
* this method, or a negative value if terminated or |
598 |
> |
* argument is negative |
599 |
|
* @throws InterruptedException if thread interrupted while waiting |
600 |
|
* @throws TimeoutException if timed out while waiting |
601 |
|
*/ |