884 |
|
* this task, but only if reuse occurs when this task has either |
885 |
|
* never been forked, or has been forked, then completed and all |
886 |
|
* outstanding joins of this task have also completed. Effects |
887 |
< |
* under any other usage conditions are not guaranteed, and are |
888 |
< |
* discouraged. This method may be useful when executing |
887 |
> |
* under any other usage conditions are not guaranteed. |
888 |
> |
* This method may be useful when executing |
889 |
|
* pre-constructed trees of subtasks in loops. |
890 |
|
*/ |
891 |
|
public void reinitialize() { |
965 |
|
* ForkJoinTask computations (as may be determined using method |
966 |
|
* {@link #inForkJoinPool}). Attempts to invoke in other contexts |
967 |
|
* result in exceptions or errors, possibly including |
968 |
< |
* ClassCastException. * |
968 |
> |
* ClassCastException. |
969 |
|
* @return the surplus number of tasks, which may be negative |
970 |
|
*/ |
971 |
|
public static int getSurplusQueuedTaskCount() { |