|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Taskpool
Method Summary | |
---|---|
TaskID |
enqueue(TaskInfo taskinfo)
Enqueues the specified task, whose information is contained in the TaskInfo. |
TaskIDGroup |
enqueueMulti(TaskInfo taskinfo,
int count)
Enqueues the specified TaskInfo as a multi-task, creates "count" inner tasks and places them in a TaskIDGroup which is then returned. |
boolean |
executeSynchronously(int cutoff)
|
int |
getActiveInteractiveTaskCount()
Returns the count of currently active interactive tasks. |
void |
interactiveTaskCompleted(TaskID<?> taskID)
Used to decrement the count of interactive tasks |
void |
nowReady(TaskID<?> taskID)
The specified task is currently on the waiting queue since it has some dependences. |
void |
printDebugInfo()
|
int |
totalNumTasksExecuted()
|
TaskID |
workerPollNextTask()
The worker thread polls the task pool for a task.. |
TaskID |
workerTakeNextTask()
The worker thread blocks until it gets a task to execute. |
Method Detail |
---|
void nowReady(TaskID<?> taskID)
taskID
- int getActiveInteractiveTaskCount()
void interactiveTaskCompleted(TaskID<?> taskID)
taskID
- The task that has just completedTaskID enqueue(TaskInfo taskinfo)
taskinfo
-
TaskIDGroup enqueueMulti(TaskInfo taskinfo, int count)
taskinfo
- count
-
TaskID workerPollNextTask()
TaskID workerTakeNextTask()
boolean executeSynchronously(int cutoff)
void printDebugInfo()
int totalNumTasksExecuted()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |