# | Line 1087 | Line 1087 | public class Phaser { | |
---|---|---|
1087 | thread = null; | |
1088 | return true; | |
1089 | } | |
1090 | < | if (timed) { |
1091 | < | if (nanos > 0L) { |
1092 | < | nanos = deadline - System.nanoTime(); |
1093 | < | } |
1094 | < | if (nanos <= 0L) { |
1095 | < | thread = null; |
1096 | < | return true; |
1097 | < | } |
1090 | > | if (timed && |
1091 | > | (nanos <= 0L || (nanos = deadline - System.nanoTime()) <= 0L)) { |
1092 | > | thread = null; |
1093 | > | return true; |
1094 | } | |
1095 | return false; | |
1096 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |