MayaFlux 0.3.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 63 of file NodeGraphManager.cpp.

64{
65 auto& processing_ptr = m_token_network_processing[token];
66
67 if (!processing_ptr) {
68 processing_ptr = std::make_unique<std::atomic<bool>>(false);
69 }
70
71 bool expected = false;
72 return processing_ptr->compare_exchange_strong(
73 expected, true,
74 std::memory_order_acquire,
75 std::memory_order_relaxed);
76}
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: