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

◆ mark_dimension_consumed()

void MayaFlux::Kakshya::SoundStreamContainer::mark_dimension_consumed ( uint32_t  dimension_index,
uint32_t  reader_id 
)
overridevirtual

Mark a dimension as consumed for the current processing cycle.

Parameters
dimension_indexIndex of the dimension that was processed
reader_idReader ID for the dimension

Implements MayaFlux::Kakshya::SignalSourceContainer.

Definition at line 704 of file SoundStreamContainer.cpp.

705{
706 Memory::SeqlockWriteGuard g(m_reader_lock);
707 if (m_reader_consumed_dimensions.contains(reader_id)) {
708 m_reader_consumed_dimensions[reader_id].insert(dimension_index);
709 } else {
711 "Attempted to mark dimension {} as consumed for unknown reader_id {}. "
712 "This may indicate the reader was not registered or has already been unregistered. "
713 "Please ensure readers are properly registered before marking dimensions as consumed.",
714 dimension_index, reader_id);
715 }
716}
#define MF_WARN(comp, ctx,...)
std::unordered_map< uint32_t, std::unordered_set< uint32_t > > m_reader_consumed_dimensions
@ ContainerProcessing
Container operations (Kakshya - file/stream/region processing)
@ Kakshya
Containers[Signalsource, Stream, File], Regions, DataProcessors.

References MayaFlux::Journal::ContainerProcessing, MayaFlux::Journal::Kakshya, m_reader_consumed_dimensions, m_reader_lock, and MF_WARN.