Uses of Interface
net.imglib2.parallel.TaskExecutor
Packages that use TaskExecutor
-
Uses of TaskExecutor in net.imglib2.loops
Fields in net.imglib2.loops declared as TaskExecutorModifier and TypeFieldDescriptionprivate TaskExecutorIterableLoopBuilder.taskExecutorprivate TaskExecutorLoopBuilder.taskExecutorMethods in net.imglib2.loops with parameters of type TaskExecutorModifier and TypeMethodDescriptionIterableLoopBuilder.multithreaded(TaskExecutor taskExecutor) This will cause the loop to be executed in a multi threaded fashion.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 TaskExecutorModifier and TypeClassDescriptionclassATaskExecutorthat wraps around a givenExecutorService.(package private) classATaskExecutorfor single threaded execution.Fields in net.imglib2.parallel declared as TaskExecutorModifier and TypeFieldDescriptionprivate static final TaskExecutorTaskExecutors.FORK_JOIN_TASK_EXECUTORFields in net.imglib2.parallel with type parameters of type TaskExecutorModifier and TypeFieldDescriptionprivate static final ThreadLocal<TaskExecutor> Parallelization.executorMethods in net.imglib2.parallel that return TaskExecutorModifier and TypeMethodDescriptionstatic TaskExecutorTaskExecutors.fixedThreadPool(int numThreads) Returns aTaskExecutorthat uses a fixed thread pool with the given number of threads.static TaskExecutorTaskExecutors.forExecutorService(ExecutorService executorService) Creates aTaskExecutorthat wraps around givenExecutorService.static TaskExecutorTaskExecutors.forExecutorServiceAndNumTasks(ExecutorService executorService, int numTasks) Creates aTaskExecutorthat wraps around givenExecutorService, and will suggest the given number of tasks when asked.static TaskExecutorTaskExecutors.forExecutorServiceAndNumThreads(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 TaskExecutorModifier and TypeMethodDescriptionstatic voidParallelization.runWithExecutor(TaskExecutor taskExecutor, Runnable action) Executes the givenRunnablewith the givenTaskExecutor, and waits for the execution to finish.static <T> TParallelization.runWithExecutor(TaskExecutor taskExecutor, 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 TaskExecutorModifier and TypeMethodDescriptionstatic ThreadFactoryTaskExecutors.applyTaskExecutorToThreadFactory(Supplier<TaskExecutor> taskExecutorFactory, ThreadFactory threadFactory) Returns aThreadFactory.static ThreadFactoryTaskExecutors.threadFactory(Supplier<TaskExecutor> taskExecutorFactory) Returns aThreadFactory.