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

◆ mark_data_consumed()

void MayaFlux::Kriya::BufferPipeline::mark_data_consumed ( uint32_t  operation_index)

Execute pipeline synchronized to audio hardware cycle boundaries.

Creates a coroutine and registers it with the scheduler using the processing hook for timing synchronization. The pipeline will be added to the scheduler at the start of each audio cycle, ensuring buffer operations complete before the buffer manager reads data.

Parameters
max_cyclesMaximum number of audio cycles to process (0 = infinite)

Mark operation data as consumed for cleanup.

Parameters
operation_indexIndex of the operation in the pipeline

Manually marks an operation's data state as consumed, allowing it to be cleaned up in the next cleanup cycle. Useful for manual data lifecycle management in custom processing scenarios.

Note
Out-of-range indices are silently ignored.

Definition at line 186 of file BufferPipeline.cpp.

187{
188 if (operation_index < m_data_states.size()) {
189 m_data_states[operation_index] = DataState::CONSUMED;
190 }
191}
std::vector< DataState > m_data_states

References CONSUMED, and m_data_states.