|
HDK
|
#include <PDG_ApplicationShim.h>
Inheritance diagram for PDG_ApplicationShim::DeferredTask:Public Member Functions | |
| DeferredTask (PDG_GraphContext *context, const PDG_Node *node, const PDG_WorkItem *work_item, PDG_EvaluationContext::State state) | |
| virtual | ~DeferredTask () |
| void | execute () |
| Evaluates the task. More... | |
| bool | wait () |
Protected Member Functions | |
| virtual void | evaluate ()=0 |
| Called when the task is evaluated. More... | |
Protected Attributes | |
| PDG_GraphContext * | myContext |
| const PDG_Node * | myNode |
| const PDG_WorkItem * | myWorkItem |
| PDG_EvaluationContext::State | myState |
| int | myCookId |
| bool | myHasExecuted |
Base class for a task that can be queued. Should be subclassed to implement a concrete task type that stores data and logic.
Definition at line 162 of file PDG_ApplicationShim.h.
| PDG_ApplicationShim::DeferredTask::DeferredTask | ( | PDG_GraphContext * | context, |
| const PDG_Node * | node, | ||
| const PDG_WorkItem * | work_item, | ||
| PDG_EvaluationContext::State | state | ||
| ) |
|
inlinevirtual |
Definition at line 170 of file PDG_ApplicationShim.h.
|
protectedpure virtual |
Called when the task is evaluated.
| void PDG_ApplicationShim::DeferredTask::execute | ( | ) |
Evaluates the task.
| bool PDG_ApplicationShim::DeferredTask::wait | ( | ) |
Waits for the task to execute. Returns true if the task completed, or false if it was interupted for some reason.
|
protected |
Definition at line 184 of file PDG_ApplicationShim.h.
|
protected |
Definition at line 190 of file PDG_ApplicationShim.h.
|
protected |
Definition at line 191 of file PDG_ApplicationShim.h.
|
protected |
Definition at line 185 of file PDG_ApplicationShim.h.
|
protected |
Definition at line 189 of file PDG_ApplicationShim.h.
|
protected |
Definition at line 186 of file PDG_ApplicationShim.h.