org.metasyntactic.thread.concurrent
Class ForkJoinTask.Wrap

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

public static class ForkJoinTask.Wrap
extends ForkJoinTask

A ForkJoinTask that holds a Runnable r, and calls r.run when executed. The class is a simple utilty to allow arbitrary Runnables to be used as ForkJoinTasks.


Nested Class Summary
 
Nested classes inherited from class org.metasyntactic.thread.concurrent.ForkJoinTask
ForkJoinTask.Parallel, ForkJoinTask.Sequence, ForkJoinTask.Wrap
 
Constructor Summary
ForkJoinTask.Wrap(java.lang.Runnable runnable)
           
 
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.Wrap

public ForkJoinTask.Wrap(java.lang.Runnable runnable)
Method Detail

run

public void run()