33 |
|
* <p>A "main" {@code ForkJoinTask} begins execution when it is |
34 |
|
* explicitly submitted to a {@link ForkJoinPool}, or, if not already |
35 |
|
* engaged in a ForkJoin computation, commenced in the {@link |
36 |
< |
* ForkJoinPool#commonPool} via {@link #fork}, {@link #invoke}, or |
36 |
> |
* ForkJoinPool#commonPool()} via {@link #fork}, {@link #invoke}, or |
37 |
|
* related methods. Once started, it will usually in turn start other |
38 |
|
* subtasks. As indicated by the name of this class, many programs |
39 |
|
* using {@code ForkJoinTask} employ only methods {@link #fork} and |
635 |
|
/** |
636 |
|
* Arranges to asynchronously execute this task in the pool the |
637 |
|
* current task is running in, if applicable, or using the {@link |
638 |
< |
* ForkJoinPool#commonPool} if not {@link #inForkJoinPool}. While |
638 |
> |
* ForkJoinPool#commonPool()} if not {@link #inForkJoinPool}. While |
639 |
|
* it is not necessarily enforced, it is a usage error to fork a |
640 |
|
* task more than once unless it has completed and been |
641 |
|
* reinitialized. Subsequent modifications to the state of this |