Lines Matching refs:task
34 * Each task is associated with a {@link Spliterator} that describes the portion
35 * of the input associated with the subtree rooted at this task.
41 * <p>This class is based on {@link CountedCompleter}, a form of fork-join task
42 * where each task has a semaphore-like count of uncompleted children, and the
43 * task is implicitly completed and notified when its last child completes.
46 * current task's result.
48 * <p>Splitting and setting up the child task links is done by {@code compute()}
53 * <p>For example, a task that performs a reduce would override {@code doLeaf()}
104 * rooted at this task
147 * @param parent this node's parent task
237 * Associates the result with the task, can be retrieved with
247 * Indicates whether this task is a leaf node. (Only valid after
252 * @return {@code true} if this task is a leaf node
259 * Indicates whether this task is the root node
261 * @return {@code true} if this task is the root node.
268 * Returns the parent of this task, or null if this task is the root
270 * @return the parent of this task, or null if this task is the root
278 * Decides whether or not to split a task further or compute it
296 @SuppressWarnings("unchecked") K task = (K) this;
299 task.leftChild = leftChild = task.makeChild(ls);
300 task.rightChild = rightChild = task.makeChild(rs);
301 task.setPendingCount(1);
305 task = leftChild;
310 task = rightChild;
316 task.setLocalResult(task.doLeaf());
317 task.tryComplete();