11 #ifndef __OP_COOKTASK_H_INCLUDED__
12 #define __OP_COOKTASK_H_INCLUDED__
35 , myDoneSpawning(false)
45 root =
new (allocate_root())
OP_CookTask(context, node);
51 return new (allocate_root())
OP_CookTask(context, node);
60 child =
new (allocate_child())
OP_CookTask(context, node);
75 UT_Task * run()
override;
84 #if H_BUILD_PARALLEL_COOK_MODE
85 OP_API extern bool OPrecordSerialNodeIds;
89 #endif // __OP_COOKTASK_H_INCLUDED__
UT_TaskState & taskState()
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
#define SYS_DEPRECATED_PUSH_DISABLE()
void spawnChildTask(OP_Context &context, OP_Node &node)
#define SYS_DEPRECATED_POP_DISABLE()
static void spawnRootTaskAndWait(OP_Context &context, OP_Node &node)
OP_CookTask(OP_Context &context, OP_Node &node)
static OP_CookTask * createRootTask(OP_Context &context, OP_Node &node)
void addWaitingTask(UT_Task &parent_task)
void spawnWaitTask(OP_Node &node)