Lines Matching defs:Completion

138      * Dependent actions are represented by Completion objects linked
139 * as Treiber stacks headed by field "stack". There are Completion
145 * Completion extends ForkJoinTask to enable async execution
153 * * A Completion class with name X corresponding to function,
163 * arranges its async execution by executing its Completion
167 * * Completion method tryFire(int mode) invokes the associated x
180 * immediately. Otherwise a Completion c is created, pushed to
215 * postFire). Completion fields need not be declared as final or
221 volatile Completion stack; // Top of Treiber stack of dependent actions
227 final boolean casStack(Completion cmp, Completion val) {
232 final boolean tryPushStack(Completion c) {
233 Completion h = stack;
239 final void pushStack(Completion c) {
421 // Modes for Completion.tryFire. Signedness matters.
432 /* ------------- Base Completion classes and operations -------------- */
435 abstract static class Completion extends ForkJoinTask<Void>
437 volatile Completion next; // Treiber stack link
456 static void lazySetNext(Completion c, Completion next) {
470 CompletableFuture<?> f = this; Completion h;
473 CompletableFuture<?> d; Completion t;
489 for (Completion p = null, q = stack; q != null;) {
490 Completion s = q.next;
513 /** A Completion with a source, dependent, and executor. */
515 abstract static class UniCompletion<T,V> extends Completion {
1038 /** A Completion for an action with two sources */
1048 /** A Completion delegating to a BiCompletion */
1050 static final class CoCompletion extends Completion {
1073 Completion q = (r != null) ? c : new CoCompletion(c);
1359 Completion q = new CoCompletion(c);
1682 * Completion for recording and releasing a waiting thread. This
1687 static final class Signaller extends Completion
2366 for (Completion p = stack; p != null; p = p.next)
2384 for (Completion p = stack; p != null; p = p.next)
2790 (Completion.class.getDeclaredField("next"));