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

◆ has_active_readers()

bool MayaFlux::Kakshya::SoundStreamContainer::has_active_readers ( ) const
overridevirtual

Check if any dimensions currently have active readers.

Returns
true if any dimension is being read, false otherwise

Implements MayaFlux::Kakshya::SignalSourceContainer.

Definition at line 704 of file SoundStreamContainer.cpp.

705{
706 std::lock_guard<std::mutex> lock(m_reader_mutex);
707 return !m_active_readers.empty();
708}
std::unordered_map< uint32_t, int > m_active_readers
void lock() override
Acquire a lock for thread-safe access.

References lock(), m_active_readers, and m_reader_mutex.

+ Here is the call graph for this function: