|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgr.demokritos.iit.jinsect.threading.ThreadQueue
gr.demokritos.iit.jinsect.threading.ThreadList
gr.demokritos.iit.jinsect.threading.PooledThreadList
public class PooledThreadList
| Field Summary | |
|---|---|
protected boolean |
bShouldTerminate
|
| Fields inherited from class gr.demokritos.iit.jinsect.threading.ThreadQueue |
|---|
Max, qThreads |
| Constructor Summary | |
|---|---|
PooledThreadList(int nThreads)
|
|
| Method Summary | |
|---|---|
boolean |
addThreadFor(java.lang.Runnable r)
Adds a Runnable object in the list for execution, if possible. |
void |
terminateThreads()
|
void |
waitUntilCompletion()
Waits until all running threads have been complete. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean bShouldTerminate
| Constructor Detail |
|---|
public PooledThreadList(int nThreads)
| Method Detail |
|---|
public boolean addThreadFor(java.lang.Runnable r)
ThreadListRunnable object in the list for execution, if possible. There is no first-in,
first-out logic, as opposed to ThreadQueue.
addThreadFor in class ThreadListr - The runnable object to execute.
public void waitUntilCompletion()
throws java.lang.InterruptedException
ThreadQueue
waitUntilCompletion in class ThreadQueuejava.lang.InterruptedException
public void terminateThreads()
throws java.lang.InterruptedException
java.lang.InterruptedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||