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

◆ preprocess_networks()

bool MayaFlux::Nodes::NodeGraphManager::preprocess_networks ( ProcessingToken  token)
private

Preprocess networks for a specific token.

Parameters
tokenProcessing domain
Returns
true if preprocessing succeeded, false otherwise

Definition at line 97 of file NodeGraphManager.cpp.

98{
99 auto& processing_ptr = m_token_network_processing[token];
100
101 if (!processing_ptr) {
102 processing_ptr = std::make_unique<std::atomic<bool>>(false);
103 }
104
105 bool expected = false;
106 return processing_ptr->compare_exchange_strong(
107 expected, true,
108 std::memory_order_acquire,
109 std::memory_order_relaxed);
110}
std::unordered_map< ProcessingToken, std::unique_ptr< std::atomic< bool > > > m_token_network_processing
Processing flags for each token's networks.

References m_token_network_processing.

Referenced by process_audio_networks(), and process_token().

+ Here is the caller graph for this function: