Uses of Interface
net.imglib2.parallel.TaskExecutor
-
Packages that use TaskExecutor Package Description net.imglib2.loops net.imglib2.parallel -
-
Uses of TaskExecutor in net.imglib2.loops
Fields in net.imglib2.loops declared as TaskExecutor Modifier and Type Field Description private TaskExecutorIterableLoopBuilder. taskExecutorprivate TaskExecutorLoopBuilder. taskExecutorMethods in net.imglib2.loops with parameters of type TaskExecutor Modifier and Type Method Description IterableLoopBuilder<T>IterableLoopBuilder. multithreaded(TaskExecutor taskExecutor)This will cause the loop to be executed in a multi threaded fashion.LoopBuilder<T>LoopBuilder. multiThreaded(TaskExecutor taskExecutor)By defaultLoopBuilderruns the loop without multi-threading. -
Uses of TaskExecutor in net.imglib2.parallel
Classes in net.imglib2.parallel that implement TaskExecutor Modifier and Type Class Description classDefaultTaskExecutorATaskExecutorthat wraps around a givenExecutorService.(package private) classSequentialTaskExecutorATaskExecutorfor single threaded execution.Fields in net.imglib2.parallel declared as TaskExecutor Modifier and Type Field Description private static TaskExecutorTaskExecutors. FORK_JOIN_TASK_EXECUTORFields in net.imglib2.parallel with type parameters of type TaskExecutor Modifier and Type Field Description private static java.lang.ThreadLocal<TaskExecutor>Parallelization. executorMethods in net.imglib2.parallel that return TaskExecutor Modifier and Type Method Description static TaskExecutorTaskExecutors. fixedThreadPool(int numThreads)Returns aTaskExecutorthat uses a fixed thread pool with the given number of threads.static TaskExecutorTaskExecutors. forExecutorService(java.util.concurrent.ExecutorService executorService)Creates aTaskExecutorthat wraps around givenExecutorService.static TaskExecutorTaskExecutors. forExecutorServiceAndNumTasks(java.util.concurrent.ExecutorService executorService, int numTasks)Creates aTaskExecutorthat wraps around givenExecutorService, and will suggest the given number of tasks when asked.static TaskExecutorTaskExecutors. forExecutorServiceAndNumThreads(java.util.concurrent.ExecutorService executorService, int numThreads)Creates aTaskExecutorthat wraps around givenExecutorService, and will return the given parallelism.static TaskExecutorSequentialTaskExecutor. getInstance()static TaskExecutorParallelization. getTaskExecutor()Returns theTaskExecutorthat was set for this thread.static TaskExecutorTaskExecutors. multiThreaded()TaskExecutorfor multi-threaded execution.static TaskExecutorTaskExecutors. nestedFixedThreadPool(int numThreads, int numSubThreads)Returns aTaskExecutorthat uses a fixed thread pool with the given number of threads.static TaskExecutorTaskExecutors. numThreads(int numThreads)TaskExecutorthat uses the given number or threads.static TaskExecutorTaskExecutors. singleThreaded()TaskExecutorfor single threaded execution.Methods in net.imglib2.parallel with parameters of type TaskExecutor Modifier and Type Method Description static voidParallelization. runWithExecutor(TaskExecutor taskExecutor, java.lang.Runnable action)Executes the givenRunnablewith the givenTaskExecutor, and waits for the execution to finish.static <T> TParallelization. runWithExecutor(TaskExecutor taskExecutor, java.util.concurrent.Callable<T> action)Executes the givenCallablewith the givenTaskExecutor, waits for the execution to finish and returns the result.(package private) static Parallelization.FrameParallelization. setExecutorRequiresReset(TaskExecutor taskExecutor)This method can be used to execute an algorithm with a givenTaskExecutor.Method parameters in net.imglib2.parallel with type arguments of type TaskExecutor Modifier and Type Method Description static java.util.concurrent.ThreadFactoryTaskExecutors. applyTaskExecutorToThreadFactory(java.util.function.Supplier<TaskExecutor> taskExecutorFactory, java.util.concurrent.ThreadFactory threadFactory)Returns aThreadFactory.static java.util.concurrent.ThreadFactoryTaskExecutors. threadFactory(java.util.function.Supplier<TaskExecutor> taskExecutorFactory)Returns aThreadFactory.
-