MayaFlux 0.3.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ execute_with_combined_tokens()

template<typename Func >
void MayaFlux::Core::SubsystemManager::execute_with_combined_tokens ( SubsystemTokens  primary_tokens,
SubsystemTokens  ,
Func  operation 
)
inline

Execute an operation with temporary elevated permissions.

Template Parameters
FuncFunction type for the operation
Parameters
primary_tokensPrimary subsystem tokens
secondary_tokensSecondary subsystem tokens for cross-domain access
operationFunction to execute with combined access

For special cross-domain operations (e.g., audio-reactive visuals). Creates a temporary handle with combined token access for controlled cross-subsystem operations.

Definition at line 198 of file SubsystemManager.hpp.

202 {
203 SubsystemTokens combined_tokens {
204 .Buffer = primary_tokens.Buffer,
205 .Node = primary_tokens.Node,
206 .Task = primary_tokens.Task
207 };
208
209 SubsystemProcessingHandle temp_handle(
215 combined_tokens);
216
217 operation(temp_handle);
218 }
std::shared_ptr< Buffers::BufferManager > m_buffer_manager
std::shared_ptr< Nodes::NodeGraphManager > m_node_graph_manager
std::shared_ptr< Vruta::TaskScheduler > m_task_scheduler
std::shared_ptr< Core::WindowManager > m_window_manager
std::shared_ptr< InputManager > m_input_manager

References MayaFlux::Core::SubsystemTokens::Buffer, MayaFlux::Core::SubsystemTokens::Node, and MayaFlux::Core::SubsystemTokens::Task.