org.metasyntactic.thread.concurrent
Class ForkJoinTask.Parallel

java.lang.Object
  |
  +--org.metasyntactic.thread.concurrent.ForkJoinTask
        |
        +--org.metasyntactic.thread.concurrent.ForkJoinTask.Parallel
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
ForkJoinTask

public static class ForkJoinTask.Parallel
extends ForkJoinTask

A new Par, when executed, runs the tasks provided in the constructor in parallel using coInvoke(tasks). The class is a simple utility that makes it easier to create composite ForkJoinTasks.


Nested Class Summary
 
Nested classes inherited from class org.metasyntactic.thread.concurrent.ForkJoinTask
ForkJoinTask.Parallel, ForkJoinTask.Sequence, ForkJoinTask.Wrap
 
Constructor Summary
ForkJoinTask.Parallel(ForkJoinTask[] tasks)
          Construct a Seq that, when executed, will process each of the tasks in the tasks array in parallel
ForkJoinTask.Parallel(ForkJoinTask task1, ForkJoinTask task2)
          Two-task constructor, for compatibility with previous release.
 
Method Summary
 void run()
           
 
Methods inherited from class org.metasyntactic.thread.concurrent.ForkJoinTask
cancel, coInvoke, coInvoke, fork, getForkJoinTaskRunner, getForkJoinTaskRunnerGroup, invoke, isDone, join, parallel, reset, sequence, setDone, start, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForkJoinTask.Parallel

public ForkJoinTask.Parallel(ForkJoinTask[] tasks)
Construct a Seq that, when executed, will process each of the tasks in the tasks array in parallel

Parameters:
tasks -

ForkJoinTask.Parallel

public ForkJoinTask.Parallel(ForkJoinTask task1,
                             ForkJoinTask task2)
Two-task constructor, for compatibility with previous release.

Parameters:
task1 -
task2 -
Method Detail

run

public void run()