HDK
|
#include <PDG_ApplicationShim.h>
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 153 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 161 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 175 of file PDG_ApplicationShim.h.
|
protected |
Definition at line 181 of file PDG_ApplicationShim.h.
|
protected |
Definition at line 182 of file PDG_ApplicationShim.h.
|
protected |
Definition at line 176 of file PDG_ApplicationShim.h.
|
protected |
Definition at line 180 of file PDG_ApplicationShim.h.
|
protected |
Definition at line 177 of file PDG_ApplicationShim.h.