Blender V5.0
blender::fn::lazy_function::ScheduledNodes Struct Reference

Public Member Functions

void schedule (const FunctionNode &node, const bool is_priority)
const FunctionNodepop_next_node ()
bool is_empty () const
int64_t nodes_num () const
void split_into (ScheduledNodes &other)

Detailed Description

Keeps track of nodes that are currently scheduled on a thread. A node can only be scheduled by one thread at the same time.

Definition at line 220 of file lazy_function_graph_executor.cc.

Member Function Documentation

◆ is_empty()

bool blender::fn::lazy_function::ScheduledNodes::is_empty ( ) const
inline

◆ nodes_num()

int64_t blender::fn::lazy_function::ScheduledNodes::nodes_num ( ) const
inline

Definition at line 253 of file lazy_function_graph_executor.cc.

◆ pop_next_node()

const FunctionNode * blender::fn::lazy_function::ScheduledNodes::pop_next_node ( )
inline

◆ schedule()

void blender::fn::lazy_function::ScheduledNodes::schedule ( const FunctionNode & node,
const bool is_priority )
inline

◆ split_into()

void blender::fn::lazy_function::ScheduledNodes::split_into ( ScheduledNodes & other)
inline

Split up the scheduled nodes into two groups that can be worked on in parallel.

Definition at line 261 of file lazy_function_graph_executor.cc.

References BLI_assert.


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