Trull

edu.luc.cs.trull
Class FastScheduler.WaitableRunnable

java.lang.Object
  extended by edu.luc.cs.trull.FastScheduler.WaitableRunnable
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
DefaultScheduler.QueuedRunnable
Enclosing class:
FastScheduler

protected class FastScheduler.WaitableRunnable
extends java.lang.Object
implements java.lang.Runnable

A wrapper around a Runnable that releases a latch when the Runnable has finished.


Field Summary
private  EDU.oswego.cs.dl.util.concurrent.Latch done
           
private  java.lang.Runnable task
           
 
Constructor Summary
FastScheduler.WaitableRunnable(java.lang.Runnable task, EDU.oswego.cs.dl.util.concurrent.Latch done)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

done

private EDU.oswego.cs.dl.util.concurrent.Latch done

task

private java.lang.Runnable task
Constructor Detail

FastScheduler.WaitableRunnable

public FastScheduler.WaitableRunnable(java.lang.Runnable task,
                                      EDU.oswego.cs.dl.util.concurrent.Latch done)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

Trull

http://www.cs.luc.edu/trull/