836 |
|
* Possibly blocks and waits for phase to advance unless aborted. |
837 |
|
* |
838 |
|
* @param phase current phase |
839 |
< |
* @param node if nonnull, the wait node to track interrupt and timeout; |
839 |
> |
* @param node if non-null, the wait node to track interrupt and timeout; |
840 |
|
* if null, denotes noninterruptible wait |
841 |
|
* @return current phase |
842 |
|
*/ |
880 |
|
if (!node.interruptible && node.wasInterrupted) |
881 |
|
Thread.currentThread().interrupt(); |
882 |
|
} |
883 |
< |
if (p == phase && parent != null) |
883 |
> |
if (p == phase) |
884 |
|
p = (int)(reconcileState() >>> PHASE_SHIFT); |
885 |
|
if (p != phase) |
886 |
|
releaseWaiters(phase); |