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

668{
669 Memory::SeqlockWriteGuard g(m_reader_lock);
670 if (m_reader_consumed_dimensions.contains(reader_id)) {
671 m_reader_consumed_dimensions[reader_id].insert(dimension_index);
672 } else {
674 "Attempted to mark dimension {} as consumed for unknown reader_id {}. "
675 "This may indicate the reader was not registered or has already been unregistered. "
676 "Please ensure readers are properly registered before marking dimensions as consumed.",
677 dimension_index, reader_id);
678 }
679}
#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.