MayaFlux 0.2.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 343 of file SoundStreamContainer.cpp.

344{
345 std::shared_lock lock(m_data_mutex);
346
347 return std::ranges::any_of(m_data, [](const auto& variant) {
348 return std::visit([](const auto& vec) { return !vec.empty(); }, variant);
349 });
350}
void lock() override
Acquire a lock for thread-safe access.

References lock(), m_data, and m_data_mutex.

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

+ Here is the call graph for this function:
+ Here is the caller graph for this function: