org.objectweb.proactive.core.group.threadpool
Class EndControler

java.lang.Object
  |
  +--org.objectweb.proactive.core.group.threadpool.EndControler

public class EndControler
extends java.lang.Object

This object is used by a thread pool to control the termination of the jobs. A member of the ThreadPool class uses this object as a lock and perfoms wait call.


Constructor Summary
EndControler()
           
 
Method Summary
 void jobFinish()
          A ThreadInThePool object calls this method to indicate it has finished a job.
 void jobStart()
          A ThreadInThePool object calls this method to indicate it has started a job.
 void reset()
          Resets the controler to its initial state (no job awake).
 void waitDone()
          Suspends the current thread until all the pending jobs in the ThreadPool are done.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EndControler

public EndControler()
Method Detail

waitDone

public void waitDone()
Suspends the current thread until all the pending jobs in the ThreadPool are done.


jobStart

public void jobStart()
A ThreadInThePool object calls this method to indicate it has started a job.


jobFinish

public void jobFinish()
A ThreadInThePool object calls this method to indicate it has finished a job.


reset

public void reset()
Resets the controler to its initial state (no job awake).



Copyright © April 2004 INRIA All Rights Reserved.