Blender  V3.3
Public Member Functions | Public Attributes | List of all members
TaskNode Struct Reference

Public Member Functions

 TaskNode (TaskGraph *task_graph, TaskGraphNodeRunFunction run_func, void *task_data, TaskGraphNodeFreeFunction free_func)
 
 TaskNode (const TaskNode &other)=delete
 
TaskNodeoperator= (const TaskNode &other)=delete
 
 ~TaskNode ()
 
void run_serial ()
 

Public Attributes

std::vector< TaskNode * > successors
 
TaskGraphNodeRunFunction run_func
 
voidtask_data
 
TaskGraphNodeFreeFunction free_func
 

Detailed Description

Definition at line 33 of file task_graph.cc.

Constructor & Destructor Documentation

◆ TaskNode() [1/2]

TaskNode::TaskNode ( TaskGraph task_graph,
TaskGraphNodeRunFunction  run_func,
void task_data,
TaskGraphNodeFreeFunction  free_func 
)
inline

Definition at line 48 of file task_graph.cc.

References input.

Referenced by BLI_task_graph_node_create().

◆ TaskNode() [2/2]

TaskNode::TaskNode ( const TaskNode other)
delete

◆ ~TaskNode()

TaskNode::~TaskNode ( )
inline

Definition at line 70 of file task_graph.cc.

References free_func, and task_data.

Member Function Documentation

◆ operator=()

TaskNode& TaskNode::operator= ( const TaskNode other)
delete

◆ run_serial()

void TaskNode::run_serial ( )
inline

Definition at line 85 of file task_graph.cc.

References run_func, successors, and task_data.

Referenced by BLI_task_graph_node_push_work().

Member Data Documentation

◆ free_func

TaskGraphNodeFreeFunction TaskNode::free_func

Definition at line 46 of file task_graph.cc.

Referenced by ~TaskNode().

◆ run_func

TaskGraphNodeRunFunction TaskNode::run_func

Definition at line 42 of file task_graph.cc.

Referenced by run_serial().

◆ successors

std::vector<TaskNode *> TaskNode::successors

Definition at line 39 of file task_graph.cc.

Referenced by BLI_task_graph_edge_create(), and run_serial().

◆ task_data

void* TaskNode::task_data

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