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

◆ initialize_state()

bool MayaFlux::Vruta::FreeRoutine::initialize_state ( uint64_t  current_context = 0U)
overridevirtual

Initializes the coroutine's state for execution.

Parameters
current_sampleCurrent sample position in the timeline
Returns
True if initialization succeeded, false otherwise

Prepares the coroutine for execution by setting its initial sample position and other state. This should be called before the first attempt to resume the coroutine.

Implements MayaFlux::Vruta::Routine.

Definition at line 616 of file Routine.cpp.

617{
618 if (!m_handle || m_handle.done())
619 return false;
620
621 m_handle.promise().auto_resume = true;
622 return true;
623}
std::coroutine_handle< promise_type > m_handle
Definition Routine.hpp:811

References m_handle.