Blender V5.0
task_graph.cc File Reference
#include "MEM_guardedalloc.h"
#include "BLI_task.h"
#include <memory>
#include <vector>

Go to the source code of this file.

Classes

struct  TaskGraph
struct  TaskNode

Functions

TaskGraphBLI_task_graph_create ()
void BLI_task_graph_free (TaskGraph *task_graph)
void BLI_task_graph_work_and_wait (TaskGraph *task_graph)
TaskNodeBLI_task_graph_node_create (TaskGraph *task_graph, TaskGraphNodeRunFunction run, void *user_data, TaskGraphNodeFreeFunction free_func)
bool BLI_task_graph_node_push_work (TaskNode *task_node)
void BLI_task_graph_edge_create (TaskNode *from_node, TaskNode *to_node)

Detailed Description

Task graph.

Definition in file task_graph.cc.

Function Documentation

◆ BLI_task_graph_create()

TaskGraph * BLI_task_graph_create ( void )

Definition at line 96 of file task_graph.cc.

Referenced by TEST(), TEST(), TEST(), TEST(), and TEST().

◆ BLI_task_graph_edge_create()

void BLI_task_graph_edge_create ( TaskNode * from_node,
TaskNode * to_node )

Definition at line 137 of file task_graph.cc.

References BLI_task_scheduler_num_threads(), and TaskNode::successors.

Referenced by TEST(), TEST(), TEST(), TEST(), and TEST().

◆ BLI_task_graph_free()

void BLI_task_graph_free ( TaskGraph * task_graph)

Definition at line 101 of file task_graph.cc.

Referenced by TEST(), TEST(), TEST(), TEST(), TEST(), and ExtractionGraph::work_and_wait().

◆ BLI_task_graph_node_create()

TaskNode * BLI_task_graph_node_create ( TaskGraph * task_graph,
TaskGraphNodeRunFunction run,
void * user_data,
TaskGraphNodeFreeFunction free_func )

Definition at line 115 of file task_graph.cc.

References free_func(), and TaskGraph::nodes.

Referenced by TEST(), TEST(), TEST(), TEST(), and TEST().

◆ BLI_task_graph_node_push_work()

bool BLI_task_graph_node_push_work ( TaskNode * task_node)

Definition at line 125 of file task_graph.cc.

References BLI_task_scheduler_num_threads(), and TaskNode::run_serial().

Referenced by TEST(), TEST(), TEST(), TEST(), and TEST().

◆ BLI_task_graph_work_and_wait()

void BLI_task_graph_work_and_wait ( TaskGraph * task_graph)

Definition at line 106 of file task_graph.cc.

References UNUSED_VARS.

Referenced by TEST(), TEST(), TEST(), TEST(), TEST(), and ExtractionGraph::work_and_wait().