MayaFlux 1.0.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 695 of file SoundStreamContainer.cpp.

696{
697 bool result = false;
699 result = !m_active_readers.empty();
700 });
701 return result;
702}
std::unordered_map< uint32_t, int > m_active_readers
bool seqlock_read_void(const Seqlock &lock, uint32_t max_attempts, Fn &&fn)
Invoke a void read functor under a Seqlock with a bounded retry count.
Definition SeqLock.hpp:268

References m_active_readers, and m_reader_lock.