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

◆ force_resume()

bool MayaFlux::Vruta::GraphicsRoutine::force_resume ( )
overridevirtual

Force resume the coroutine, bypassing all checks Used only during shutdown to push coroutines to final_suspend.

Returns
True if coroutine was resumed, false if already done

Implements MayaFlux::Vruta::Routine.

Definition at line 321 of file Routine.cpp.

322{
323 if (!m_handle || m_handle.done()) {
324 return false;
325 }
326 m_handle.resume();
327 return true;
328}
std::coroutine_handle< promise_type > m_handle
Handle to the underlying coroutine.
Definition Routine.hpp:623

References m_handle.