# | Line 1106 | Line 1106 | public class Phaser { | |
---|---|---|
1106 | ||
1107 | public boolean block() { | |
1108 | while (!isReleasable()) { | |
1109 | < | if (!timed) |
1110 | < | LockSupport.park(this); |
1111 | < | else |
1109 | > | if (timed) |
1110 | LockSupport.parkNanos(this, nanos); | |
1111 | + | else |
1112 | + | LockSupport.park(this); |
1113 | } | |
1114 | return true; | |
1115 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |