MayaFlux 1.0.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< DataVariant >.

Definition at line 406 of file WindowContainer.cpp.

407{
408 bool result = false;
410 if (m_processed_data.empty())
411 return;
412 result = std::visit([](const auto& v) { return !v.empty(); }, m_processed_data[0]);
413 });
414 return result;
415}
std::vector< DataVariant > m_processed_data
bool seqlock_read_void(const Seqlock &lock, uint32_t max_attempts, Fn &&fn)
Invoke a void read functor under a Seqlock with a bounded retry count.
Definition SeqLock.hpp:268

References m_data_lock, and m_processed_data.