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

◆ has_data()

bool MayaFlux::Kakshya::SoundStreamContainer::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 281 of file SoundStreamContainer.cpp.

282{
283 bool result = false;
285 result = std::ranges::any_of(m_data, [](const auto& variant) {
286 return std::visit([](const auto& vec) { return !vec.empty(); }, variant);
287 });
288 });
289 return result;
290}
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, and m_data_lock.

Referenced by get_value_impl(), is_ready(), is_ready_for_processing(), and mark_ready_for_processing().

+ Here is the caller graph for this function: