675 |
|
} |
676 |
|
|
677 |
|
/** |
678 |
< |
* Returns the parent of this phaser, or null if none. |
678 |
> |
* Returns the parent of this phaser, or {@code null} if none. |
679 |
|
* |
680 |
< |
* @return the parent of this phaser, or null if none |
680 |
> |
* @return the parent of this phaser, or {@code null} if none |
681 |
|
*/ |
682 |
|
public Phaser getParent() { |
683 |
|
return parent; |
706 |
|
* Overridable method to perform an action upon phase advance, and |
707 |
|
* to control termination. This method is invoked whenever the |
708 |
|
* barrier is tripped (and thus all other waiting parties are |
709 |
< |
* dormant). If it returns true, then, rather than advance the |
710 |
< |
* phase number, this barrier will be set to a final termination |
711 |
< |
* state, and subsequent calls to {@code isTerminated} will |
712 |
< |
* return true. |
709 |
> |
* dormant). If it returns {@code true}, then, rather than advance |
710 |
> |
* the phase number, this barrier will be set to a final |
711 |
> |
* termination state, and subsequent calls to {@link #isTerminated} |
712 |
> |
* will return true. |
713 |
|
* |
714 |
< |
* <p> The default version returns true when the number of |
714 |
> |
* <p> The default version returns {@code true} when the number of |
715 |
|
* registered parties is zero. Normally, overrides that arrange |
716 |
|
* termination for other reasons should also preserve this |
717 |
|
* property. |