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

◆ is_active()

bool MayaFlux::Vruta::SoundRoutine::is_active ( ) const
overridevirtual

Checks if the coroutine is still active.

Returns
True if the coroutine is active, false if it's completed or invalid

An active coroutine has not yet completed its execution and can be resumed. Inactive coroutines have either completed or were never properly initialized.

Implements MayaFlux::Vruta::Routine.

Definition at line 79 of file Routine.cpp.

80{
81 if (!m_handle) {
82 return false;
83 }
84 return m_handle.address() != nullptr && !m_handle.done();
85}
std::coroutine_handle< promise_type > m_handle
Handle to the underlying coroutine.
Definition Routine.hpp:460

References m_handle.

Referenced by next_execution(), restart(), and try_resume_with_context().

+ Here is the caller graph for this function: