MayaFlux 0.1.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 341 of file SoundStreamContainer.cpp.

342{
343 std::shared_lock lock(m_data_mutex);
344
345 return std::ranges::any_of(m_data, [](const auto& variant) {
346 return std::visit([](const auto& vec) { return !vec.empty(); }, variant);
347 });
348}
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: