MayaFlux 0.2.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 181 of file WindowContainer.cpp.

182{
183 std::shared_lock lock(m_data_mutex);
184 if (m_processed_data.empty())
185 return false;
186 return std::visit([](const auto& v) { return !v.empty(); }, m_processed_data[0]);
187}
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: