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

◆ has_data()

bool MayaFlux::Kakshya::WindowContainer::has_data ( ) const
overridevirtual

Check if the container currently holds any data.

Returns
true if data is present, false otherwise

Implements MayaFlux::Kakshya::NDDataContainer.

Definition at line 470 of file WindowContainer.cpp.

471{
472 std::shared_lock lock(m_data_mutex);
473 if (m_processed_data.empty())
474 return false;
475 return std::visit([](const auto& v) { return !v.empty(); }, m_processed_data[0]);
476}
void lock() override
Acquire a lock for thread-safe access.
std::vector< DataVariant > m_processed_data

References lock(), m_data_mutex, and m_processed_data.

+ Here is the call graph for this function: