HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_TaskList Class Reference

#include <UT_TaskList.h>

Public Member Functions

bool isEmpty () const
 Returns true when number of tasks is non-zero. More...
 
void clear ()
 Removes all tasks. More...
 
template<typename Body >
void append (Body &&task)
 Append a task. More...
 
void spawnRootAndWait ()
 Spawn this task list as root tasks and wait. More...
 
void runSerial ()
 Run this task list in serial. More...
 

Detailed Description

Note
Consider using UT_TaskGroup instead, except that UT_TaskGroup will NOT spawn with a UT_TaskScope (you need to do this yourself).

Definition at line 27 of file UT_TaskList.h.

Member Function Documentation

template<typename Body >
void UT_TaskList::append ( Body &&  task)
inline

Append a task.

Definition at line 45 of file UT_TaskList.h.

void UT_TaskList::clear ( void  )
inline

Removes all tasks.

Definition at line 38 of file UT_TaskList.h.

bool UT_TaskList::isEmpty ( ) const
inline

Returns true when number of tasks is non-zero.

Definition at line 32 of file UT_TaskList.h.

void UT_TaskList::runSerial ( )
inline

Run this task list in serial.

Definition at line 66 of file UT_TaskList.h.

void UT_TaskList::spawnRootAndWait ( )
inline

Spawn this task list as root tasks and wait.

Definition at line 51 of file UT_TaskList.h.


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