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

◆ set_raw()

void MayaFlux::Kakshya::PlotProcessor::set_raw ( uint32_t  series_index,
std::vector< double >  data 
)

Push raw sample data for a series.

Lock-free pending swap. The data is committed into the container on the next process() call. Thread-safe: may be called from any thread.

Parameters
series_indexIndex returned by PlotContainer::add_series().
dataSamples to write. Copied into a pending buffer.

Definition at line 93 of file PlotProcessor.cpp.

94{
95 auto& b = m_bindings[series_index];
96 b.source_type = SourceType::RAW;
97 b.pending_raw = std::move(data);
98 b.raw_dirty.test_and_set(std::memory_order_release);
99}
size_t b
std::unordered_map< uint32_t, SeriesBinding > m_bindings

References b, m_bindings, and RAW.