MayaFlux 0.4.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 334 of file WindowContainer.cpp.

335{
336 std::unique_lock lock(m_data_mutex);
337 const size_t sz = m_structure.get_total_elements();
338 m_processed_data.resize(1);
339 m_processed_data[0] = std::vector<uint8_t>(sz, 0U);
341}
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: