5 |
|
* http://creativecommons.org/publicdomain/zero/1.0/ |
6 |
|
*/ |
7 |
|
|
8 |
– |
import static java.util.concurrent.TimeUnit.MILLISECONDS; |
9 |
– |
|
8 |
|
import java.lang.invoke.MethodHandles; |
9 |
|
import java.lang.invoke.VarHandle; |
10 |
|
import java.util.concurrent.CountDownLatch; |
64 |
|
Future<?> f = ForkJoinPool.commonPool().submit(runInCommonPool); |
65 |
|
// Ensure runInCommonPool is truly running in the common pool, |
66 |
|
// by giving this thread no opportunity to "help" on get(). |
67 |
< |
assertTrue(taskStarted.await(LONG_DELAY_MS, MILLISECONDS)); |
67 |
> |
await(taskStarted); |
68 |
|
assertNull(f.get()); |
69 |
|
} |
70 |
|
|