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

◆ is_active()

bool MayaFlux::Vruta::CrossRoutine::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 441 of file Routine.cpp.

442{
443 if (!m_handle) {
444 return false;
445 }
446 return m_handle.address() != nullptr && !m_handle.done();
447}
std::coroutine_handle< promise_type > m_handle
Definition Routine.hpp:752

References m_handle.

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

+ Here is the caller graph for this function: