11 #ifndef __UT_TASK_H_INCLUDED__
12 #define __UT_TASK_H_INCLUDED__
30 : myParentScope(
nullptr)
36 myParentScope = parent;
41 me::set_ref_count(count);
45 me::increment_ref_count();
49 return me::decrement_ref_count();
54 me::recycle_as_continuation();
58 me::recycle_as_safe_continuation();
68 me::spawn_root_and_wait(task);
86 using me::allocate_root;
87 using me::allocate_child;
91 me::cancel_group_execution();
95 return me::is_cancelled();
129 #endif // __UT_TASK_H_INCLUDED__
void recycleAsContinuation()
static void spawnRootAndWait(UT_Task &task)
*get result *(waiting if necessary)*A common idiom is to fire a bunch of sub tasks at the and then *wait for them to all complete We provide a helper class
static const UT_TaskScope * getCurrent()
#define SYS_DEPRECATED_PUSH_DISABLE()
#define SYS_DEPRECATED_POP_DISABLE()
void cancelGroupExecution()
#define SYS_DEPRECATED_REPLACE(__V__, __R__)
void recycleAsSafeContinuation()
void setParentScope(const UT_TaskScope *parent)
void setRefCount(int count)
void spawnChild(UT_Task &task)