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

◆ next_execution()

uint64_t MayaFlux::Vruta::GraphicsRoutine::next_execution ( ) const
overridevirtual

Gets the sample position when this routine should next execute.

Returns
Sample position for next execution, or uint64_MAX if inactive

This method is crucial for sample-accurate scheduling. It returns the exact sample position when the coroutine should be resumed next. The scheduler uses this to determine when to call try_resume().

Implements MayaFlux::Vruta::Routine.

Definition at line 285 of file Routine.cpp.

286{
287 return m_handle ? m_handle.promise().next_frame : UINT64_MAX;
288}
std::coroutine_handle< promise_type > m_handle
Handle to the underlying coroutine.
Definition Routine.hpp:654

References m_handle.