EDU.oswego.cs.dl.util.concurrent
Class FJTask.Par
java.lang.Object
|
+--EDU.oswego.cs.dl.util.concurrent.FJTask
|
+--EDU.oswego.cs.dl.util.concurrent.FJTask.Par
- All Implemented Interfaces:
- java.lang.Runnable
- Enclosing class:
- FJTask
- public static class FJTask.Par
- extends FJTask
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 FJTasks.
Field Summary |
protected EDU.oswego.cs.dl.util.concurrent.FJTask[] |
tasks
|
Constructor Summary |
FJTask.Par(EDU.oswego.cs.dl.util.concurrent.FJTask[] tasks)
Construct a Seq that, when executed, will process each of the
tasks in the tasks array in parallel |
FJTask.Par(EDU.oswego.cs.dl.util.concurrent.FJTask task1,
EDU.oswego.cs.dl.util.concurrent.FJTask task2)
Two-task constructor, for compatibility with previous release. |
Method Summary |
void |
run()
|
Methods inherited from class EDU.oswego.cs.dl.util.concurrent.FJTask |
cancel, coInvoke, coInvoke, fork, getFJTaskRunner, getFJTaskRunnerGroup, invoke, isDone, join, par, par, reset, seq, seq, setDone, start, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tasks
protected final EDU.oswego.cs.dl.util.concurrent.FJTask[] tasks
FJTask.Par
public FJTask.Par(EDU.oswego.cs.dl.util.concurrent.FJTask[] tasks)
- Construct a Seq that, when executed, will process each of the
tasks in the tasks array in parallel
FJTask.Par
public FJTask.Par(EDU.oswego.cs.dl.util.concurrent.FJTask task1,
EDU.oswego.cs.dl.util.concurrent.FJTask task2)
- Two-task constructor, for compatibility with previous release.
run
public void run()