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

◆ is_active()

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

270{
271 return m_handle && !m_handle.done();
272}
std::coroutine_handle< promise_type > m_handle
Handle to the underlying coroutine.
Definition Routine.hpp:654

References m_handle.

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

+ Here is the caller graph for this function: