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 355 of file WindowContainer.cpp.

356{
357 std::shared_lock lock(m_data_mutex);
358 if (m_processed_data.empty())
359 return false;
360 return std::visit([](const auto& v) { return !v.empty(); }, m_processed_data[0]);
361}
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: