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

◆ clear()

void MayaFlux::Kakshya::WindowContainer::clear ( )
overridevirtual

Clear all data in the container.

Implements MayaFlux::Kakshya::NDDataContainer.

Definition at line 160 of file WindowContainer.cpp.

161{
162 std::unique_lock lock(m_data_mutex);
163 const size_t sz = m_structure.get_total_elements();
164 m_processed_data.resize(1);
165 m_processed_data[0] = std::vector<uint8_t>(sz, 0U);
167}
void lock() override
Acquire a lock for thread-safe access.
std::vector< DataVariant > m_processed_data
void update_processing_state(ProcessingState new_state) override
Update the processing state of the container.
@ IDLE
Container is inactive with no data or not ready for processing.
static uint64_t get_total_elements(const std::vector< DataDimension > &dimensions)
Get total elements across all dimensions.

References MayaFlux::Kakshya::ContainerDataStructure::get_total_elements(), MayaFlux::Kakshya::IDLE, lock(), m_data_mutex, m_processed_data, m_structure, and update_processing_state().

+ Here is the call graph for this function: