Home
last modified time | relevance | path

Searched refs:ForkJoinTask (Results 1 – 16 of 16) sorted by relevance

/libcore/luni/src/main/java/java/util/concurrent/
DForkJoinPool.java701 private static final class EmptyTask extends ForkJoinTask<Void> {
703 EmptyTask() { status = ForkJoinTask.NORMAL; } // force done in EmptyTask()
788 ForkJoinTask<?>[] array; // the elements (initially unallocated)
792 volatile ForkJoinTask<?> currentJoin; // task being joined in awaitJoin
795 volatile ForkJoinTask<?> currentSteal; // nonnull when running some task
825 ForkJoinTask<?>[] a; int n, al, s; in isEmpty()
838 final void push(ForkJoinTask<?> task) { in push()
840 int s = top, al, d; ForkJoinTask<?>[] a; in push()
859 final ForkJoinTask<?>[] growArray() { in growArray()
860 ForkJoinTask<?>[] oldA = array; in growArray()
[all …]
DForkJoinTask.java179 public abstract class ForkJoinTask<V> implements Future<V>, Serializable { class
407 static final class ExceptionNode extends WeakReference<ForkJoinTask<?>> {
412 ExceptionNode(ForkJoinTask<?> task, Throwable ex, ExceptionNode next, in ExceptionNode()
478 static final void cancelIgnoringExceptions(ForkJoinTask<?> t) { in cancelIgnoringExceptions()
617 ForkJoinTask.<RuntimeException>uncheckedThrow(ex); in rethrow()
660 public final ForkJoinTask<V> fork() { in fork()
719 public static void invokeAll(ForkJoinTask<?> t1, ForkJoinTask<?> t2) { in invokeAll()
743 public static void invokeAll(ForkJoinTask<?>... tasks) { in invokeAll()
747 ForkJoinTask<?> t = tasks[i]; in invokeAll()
758 ForkJoinTask<?> t = tasks[i]; in invokeAll()
[all …]
DRecursiveAction.java136 public abstract class RecursiveAction extends ForkJoinTask<Void> {
DRecursiveTask.java39 public abstract class RecursiveTask<V> extends ForkJoinTask<V> {
DCountedCompleter.java383 public abstract class CountedCompleter<T> extends ForkJoinTask<T> {
DCompletableFuture.java406 abstract static class Completion extends ForkJoinTask<Void>
1579 static final class AsyncSupply<T> extends ForkJoinTask<Void>
1615 static final class AsyncRun extends ForkJoinTask<Void>
/libcore/jsr166-tests/src/test/java/jsr166/
DCountedCompleterTest.java17 import java.util.concurrent.ForkJoinTask;
55 private void testInvokeOnPool(ForkJoinPool pool, ForkJoinTask a) { in testInvokeOnPool()
629 ForkJoinTask a = new CheckedRecursiveAction() { in testInvoke()
645 ForkJoinTask a = new CheckedRecursiveAction() { in testQuietlyInvoke()
659 ForkJoinTask a = new CheckedRecursiveAction() { in testForkJoin()
674 ForkJoinTask a = new CheckedRecursiveAction() { in testForkGet()
689 ForkJoinTask a = new CheckedRecursiveAction() { in testForkTimedGet()
704 ForkJoinTask a = new CheckedRecursiveAction() { in testForkTimedGetNPE()
720 ForkJoinTask a = new CheckedRecursiveAction() { in testForkQuietlyJoin()
736 ForkJoinTask a = new CheckedRecursiveAction() { in testForkHelpQuiesce()
[all …]
DForkJoinPool8Test.java17 import java.util.concurrent.ForkJoinTask;
67 private void checkInvoke(ForkJoinTask a) { in checkInvoke()
73 void checkNotDone(ForkJoinTask a) { in checkNotDone()
81 if (! ForkJoinTask.inForkJoinPool()) { in checkNotDone()
104 void checkCompletedNormally(ForkJoinTask a) { in checkCompletedNormally()
122 void checkCancelled(ForkJoinTask a) { in checkCancelled()
149 void checkCompletedAbnormally(ForkJoinTask a, Throwable t) { in checkCompletedAbnormally()
973 ForkJoinTask a = new CheckedRecursiveAction() { in testInvokeCC()
989 ForkJoinTask a = new CheckedRecursiveAction() { in testQuietlyInvokeCC()
1003 ForkJoinTask a = new CheckedRecursiveAction() { in testForkJoinCC()
[all …]
DForkJoinPoolTest.java23 import java.util.concurrent.ForkJoinTask;
90 public int drainTasksTo(Collection<? super ForkJoinTask<?>> c) { in drainTasksTo()
93 public ForkJoinTask<?> pollSubmission() { in pollSubmission()
127 static final class FailingTask extends ForkJoinTask<Void> {
347 ForkJoinTask<Integer> f = p.submit(new FibTask(8));
361 ForkJoinTask<Integer> f = p.submit(new FibTask(8));
375 ForkJoinTask<Integer> f = new LockingFibTask(20, locker, lock);
390 ForkJoinTask a = p.submit(awaiter(done));
391 ForkJoinTask b = p.submit(awaiter(done));
392 ForkJoinTask c = p.submit(awaiter(done));
[all …]
DForkJoinTask8Test.java17 import java.util.concurrent.ForkJoinTask;
100 void checkNotDone(ForkJoinTask a) { in checkNotDone()
117 <T> void checkCompletedNormally(ForkJoinTask<T> a) { in checkCompletedNormally()
121 <T> void checkCompletedNormally(ForkJoinTask<T> a, T expected) { in checkCompletedNormally()
157 void checkCompletedAbnormally(ForkJoinTask a, Throwable t) {
203 abstract static class BinaryAsyncAction extends ForkJoinTask<Void> {
927 ForkJoinTask[] tasks = { f, g };
954 ForkJoinTask[] tasks = { f, g, h };
981 ForkJoinTask[] tasks = { f, g, h };
1176 final ForkJoinTask a = ForkJoinTask.adapt(awaiter(done));
[all …]
DForkJoinTaskTest.java19 import java.util.concurrent.ForkJoinTask;
77 void checkNotDone(ForkJoinTask a) { in checkNotDone()
92 <T> void checkCompletedNormally(ForkJoinTask<T> a) { in checkCompletedNormally()
96 <T> void checkCompletedNormally(ForkJoinTask<T> a, T expected) { in checkCompletedNormally()
130 void checkCancelled(ForkJoinTask a) {
167 void checkCompletedAbnormally(ForkJoinTask a, Throwable t) {
219 abstract static class BinaryAsyncAction extends ForkJoinTask<Void> {
903 ForkJoinTask[] tasks = { f, g };
941 ForkJoinTask[] tasks = { f, g, h };
962 ForkJoinTask[] tasks = { f, g, h };
[all …]
DRecursiveActionTest.java16 import java.util.concurrent.ForkJoinTask;
70 if (! ForkJoinTask.inForkJoinPool()) { in checkNotDone()
370 assertFalse(ForkJoinTask.inForkJoinPool()); in testJoinIgnoresInterruptsOutsideForkJoinPool()
DRecursiveTaskTest.java15 import java.util.concurrent.ForkJoinTask;
67 if (! ForkJoinTask.inForkJoinPool()) { in checkNotDone()
DCompletableFutureTest.java34 import java.util.concurrent.ForkJoinTask;
575 assertNull(ForkJoinTask.getPool());
649 (ForkJoinPool.commonPool() == ForkJoinTask.getPool()));
/libcore/ojluni/src/main/java/java/util/stream/
DForEachOps.java31 import java.util.concurrent.ForkJoinTask;
/libcore/
Dnon_openjdk_java_files.mk117 luni/src/main/java/java/util/concurrent/ForkJoinTask.java \