44 |
|
|
45 |
|
static final ForkJoinPool mainPool = new ForkJoinPool(); |
46 |
|
static final ForkJoinPool singletonPool = new ForkJoinPool(1); |
47 |
< |
static final ForkJoinPool asyncSingletonPool = |
47 |
> |
static final ForkJoinPool asyncSingletonPool = |
48 |
|
new ForkJoinPool(1, ForkJoinPool.defaultForkJoinWorkerThreadFactory, |
49 |
|
null, true); |
50 |
|
static final class FJException extends RuntimeException { |
224 |
|
* invoke returns when task completes normally. |
225 |
|
* isCompletedAbnormally and isCancelled return false for normally |
226 |
|
* completed tasks. getRawResult of a RecursiveAction returns null; |
227 |
– |
* |
227 |
|
*/ |
228 |
|
public void testInvoke() { |
229 |
|
RecursiveAction a = new RecursiveAction() { |