MayaFlux 0.5.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 438 of file WindowContainer.cpp.

439{
440 bool result = false;
442 if (m_processed_data.empty())
443 return;
444 result = std::visit([](const auto& v) { return !v.empty(); }, m_processed_data[0]);
445 });
446 return result;
447}
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:222

References m_data_lock, and m_processed_data.