|
Blender V5.3
|
#include <lazy_function_graph_executor_generic.hh>
Public Member Functions | |
| LockedNode (const Node &node, NodeState &node_state) | |
Public Attributes | |
| const Node & | node |
| NodeState & | node_state |
| Vector< const OutputSocket * > | delayed_required_outputs |
| Vector< const OutputSocket * > | delayed_unused_outputs |
Utility class that wraps a node whose state is locked. Having this is a separate class is useful because it allows methods to communicate that they expect the node to be locked.
Definition at line 197 of file lazy_function_graph_executor_generic.hh.
|
inline |
Definition at line 215 of file lazy_function_graph_executor_generic.hh.
References node, and node_state.
| Vector<const OutputSocket *> blender::fn::lazy_function::generic_graph_executor::LockedNode::delayed_required_outputs |
Used to delay notifying (and therefore locking) other nodes until the current node is not locked anymore. This might not be strictly necessary to avoid deadlocks in the current code, but is a good measure to avoid accidentally adding a deadlock later on. By not locking more than one node per thread at a time, deadlocks are avoided.
The notifications will be send right after the node is not locked anymore.
Definition at line 212 of file lazy_function_graph_executor_generic.hh.
| Vector<const OutputSocket *> blender::fn::lazy_function::generic_graph_executor::LockedNode::delayed_unused_outputs |
Definition at line 213 of file lazy_function_graph_executor_generic.hh.
| const Node& blender::fn::lazy_function::generic_graph_executor::LockedNode::node |
This is the node that is currently locked.
Definition at line 201 of file lazy_function_graph_executor_generic.hh.
Referenced by LockedNode().
| NodeState& blender::fn::lazy_function::generic_graph_executor::LockedNode::node_state |
Definition at line 202 of file lazy_function_graph_executor_generic.hh.
Referenced by LockedNode().