Blender V4.3
blender::fn::lazy_function::CurrentTask Struct Reference

Public Attributes

std::mutex mutex
 
ScheduledNodes scheduled_nodes
 
std::atomic< bool > has_scheduled_nodes = false
 

Detailed Description

Definition at line 274 of file lazy_function_graph_executor.cc.

Member Data Documentation

◆ has_scheduled_nodes

std::atomic<bool> blender::fn::lazy_function::CurrentTask::has_scheduled_nodes = false

Makes it cheaper to check if there are any scheduled nodes because it avoids locking the mutex.

Definition at line 287 of file lazy_function_graph_executor.cc.

◆ mutex

std::mutex blender::fn::lazy_function::CurrentTask::mutex

Mutex used to protect scheduled_nodes when the executor uses multi-threading.

Definition at line 278 of file lazy_function_graph_executor.cc.

◆ scheduled_nodes

ScheduledNodes blender::fn::lazy_function::CurrentTask::scheduled_nodes

Nodes that have been scheduled to execute next.

Definition at line 282 of file lazy_function_graph_executor.cc.


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