public static final class BaseTask.FinishTask extends BaseTask
BaseTask.FinishTask, BaseTask.FutureTask<R>| Modifier and Type | Field and Description |
|---|---|
protected static java.util.concurrent.atomic.AtomicLong |
TASK_COUNTER
Count all finish scopes.
|
| Constructor and Description |
|---|
FinishTask(java.lang.Runnable setRunnable)
Constructor for a finish task.
|
| Modifier and Type | Method and Description |
|---|---|
void |
awaitCompletion()
Wait for all tasks registered on this finish scope to complete.
|
void |
compute() |
BaseTask.FinishTask |
ief()
Fetch the immediately enclosing finish of a task.
|
void |
onCompletion(java.util.concurrent.CountedCompleter<?> caller) |
void |
pushException(java.lang.Throwable throwable)
Push an exception onto the stack.
|
addToPendingCount, compareAndSetPendingCount, complete, decrementPendingCountUnlessZero, exec, firstComplete, getCompleter, getPendingCount, getRawResult, getRoot, helpComplete, nextComplete, onExceptionalCompletion, propagateCompletion, quietlyCompleteRoot, setPendingCount, setRawResult, tryCompleteadapt, adapt, adapt, cancel, compareAndSetForkJoinTaskTag, completeExceptionally, fork, get, get, getException, getForkJoinTaskTag, getPool, getQueuedTaskCount, getSurplusQueuedTaskCount, helpQuiesce, inForkJoinPool, invoke, invokeAll, invokeAll, invokeAll, isCancelled, isCompletedAbnormally, isCompletedNormally, isDone, join, peekNextLocalTask, pollNextLocalTask, pollTask, quietlyComplete, quietlyInvoke, quietlyJoin, reinitialize, setForkJoinTaskTag, tryUnforkprotected static final java.util.concurrent.atomic.AtomicLong TASK_COUNTER
public FinishTask(java.lang.Runnable setRunnable)
setRunnable - User-defined body of this task.public void compute()
compute in class java.util.concurrent.CountedCompleter<java.lang.Void>public void onCompletion(java.util.concurrent.CountedCompleter<?> caller)
onCompletion in class java.util.concurrent.CountedCompleter<java.lang.Void>public void awaitCompletion()
public BaseTask.FinishTask ief()
BaseTaskpublic void pushException(java.lang.Throwable throwable)
throwable - Thrown exception