MayaFlux 0.5.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 658 of file SoundStreamContainer.cpp.

659{
660 bool result = false;
662 result = !m_active_readers.empty();
663 });
664 return result;
665}
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:222

References m_active_readers, and m_reader_lock.