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

◆ get_mutex()

std::mutex & MayaFlux::Buffers::TokenUnitManager::get_mutex ( ) const
inline

Acquires the manager's mutex for external synchronization.

Returns
Reference to the internal mutex

Use this when you need to perform multiple atomic operations across the unit store. Example:

std::lock_guard<std::mutex> lock(manager.get_mutex());
auto& unit = manager.get_audio_unit_mutable(token);
// Multiple operations on unit are now atomic
static MayaFlux::Nodes::ProcessingToken token
Definition Timers.cpp:8

Definition at line 270 of file TokenUnitManager.hpp.

270{ return m_manager_mutex; }
std::mutex m_manager_mutex
Mutex for thread-safe access to all unit maps.

Referenced by MayaFlux::Buffers::BufferAccessControl::add_audio_buffer().

+ Here is the caller graph for this function: