HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_Task Class Referenceabstract

#include <UT_Task.h>

+ Inheritance diagram for UT_Task:

Public Member Functions

 UT_Task ()
 
void setParentScope (const UT_TaskScope *parent)
 
void setRefCount (int count)
 
void incrementRefCount ()
 
int decrementRefCount ()
 
void recycleAsContinuation ()
 
void recycleAsSafeContinuation ()
 
void destroy ()
 
void enqueue ()
 
void spawnChild (UT_Task &task)
 
virtual UT_Taskrun ()=0
 
void cancelGroupExecution ()
 
bool isCancelled () const
 
void waitForAll ()
 

Static Public Member Functions

static void spawnRootAndWait (UT_Task &task)
 

Friends

class UT_TaskList
 

Detailed Description

Definition at line 22 of file UT_Task.h.

Constructor & Destructor Documentation

UT_Task::UT_Task ( )
inline

Definition at line 29 of file UT_Task.h.

Member Function Documentation

void UT_Task::cancelGroupExecution ( )
inline

Definition at line 89 of file UT_Task.h.

int UT_Task::decrementRefCount ( )
inline

Definition at line 47 of file UT_Task.h.

void UT_Task::destroy ( )
inline

Definition at line 60 of file UT_Task.h.

void UT_Task::enqueue ( )
inline

Definition at line 70 of file UT_Task.h.

void UT_Task::incrementRefCount ( )
inline

Definition at line 43 of file UT_Task.h.

bool UT_Task::isCancelled ( ) const
inline

Definition at line 93 of file UT_Task.h.

void UT_Task::recycleAsContinuation ( )
inline

Definition at line 52 of file UT_Task.h.

void UT_Task::recycleAsSafeContinuation ( )
inline

Definition at line 56 of file UT_Task.h.

virtual UT_Task* UT_Task::run ( )
pure virtual

Should be overriden by derived classes. Returns the next task to run, nullptr if none.

Implemented in UT_EmptyTask, and OP_CookTask.

void UT_Task::setParentScope ( const UT_TaskScope parent)
inline

Definition at line 34 of file UT_Task.h.

void UT_Task::setRefCount ( int  count)
inline

Definition at line 39 of file UT_Task.h.

void UT_Task::spawnChild ( UT_Task task)
inline

Definition at line 75 of file UT_Task.h.

static void UT_Task::spawnRootAndWait ( UT_Task task)
inlinestatic

Definition at line 65 of file UT_Task.h.

void UT_Task::waitForAll ( )
inline

Definition at line 97 of file UT_Task.h.

Friends And Related Function Documentation

friend class UT_TaskList
friend

Definition at line 111 of file UT_Task.h.


The documentation for this class was generated from the following file: