MayaFlux 0.4.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 428 of file Routine.cpp.

429{
430 if (!m_handle) {
431 return false;
432 }
433 return m_handle.address() != nullptr && !m_handle.done();
434}
std::coroutine_handle< promise_type > m_handle
Definition Routine.hpp:726

References m_handle.

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

+ Here is the caller graph for this function: