Example usage for java.util.concurrent ForkJoinTask invokeAll

List of usage examples for java.util.concurrent ForkJoinTask invokeAll

Introduction

In this page you can find the example usage for java.util.concurrent ForkJoinTask invokeAll.

Prototype

public static void invokeAll(ForkJoinTask<?> t1, ForkJoinTask<?> t2) 

Source Link

Document

Forks the given tasks, returning when isDone holds for each task or an (unchecked) exception is encountered, in which case the exception is rethrown.

Usage

From source file:net.shipilev.fjptrace.tasks.RenderTaskExecTimeTask.java

@Override
protected void compute() {
    ForkJoinTask.invokeAll(
            new TaskStatsGraphTask(events, taskStatus.getSelf(), prefix + "-exectimeExclusive.png",
                    "Task execution time (exclusive)", "Time to execute, sec, LOG scale"),
            new TaskStatsGraphTask(events, taskStatus.getTotal(), prefix + "-exectimeInclusive.png",
                    "Task execution times (inclusive, including subtasks)", "Time to execute, sec, LOG scale"));
}