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

◆ GraphicsRoutine() [1/3]

MayaFlux::Vruta::GraphicsRoutine::GraphicsRoutine ( std::coroutine_handle< promise_type h)

Constructs a GraphicsRoutine from a coroutine handle.

Parameters
hHandle to the coroutine

Creates a GraphicsRoutine that wraps and manages the given coroutine. This is typically called by the compiler-generated code when a coroutine function returns a GraphicsRoutine.

Definition at line 204 of file Routine.cpp.

205 : m_handle(h)
206{
207 if (!m_handle || !m_handle.address()) {
208 error<std::invalid_argument>(Journal::Component::Vruta, Journal::Context::CoroutineScheduling, std::source_location::current(),
209 "GraphicsRoutine constructed with invalid coroutine handle");
210 }
211}
uint32_t h
Definition InkPress.cpp:28
std::coroutine_handle< promise_type > m_handle
Handle to the underlying coroutine.
Definition Routine.hpp:623
@ CoroutineScheduling
Coroutine scheduling and temporal coordination (Vruta::TaskScheduler)
@ Vruta
Coroutines, schedulers, clocks, task management.

References MayaFlux::Journal::CoroutineScheduling, m_handle, and MayaFlux::Journal::Vruta.