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 218 of file Routine.cpp.

219 : m_handle(h)
220{
221 if (!m_handle || !m_handle.address()) {
222 error<std::invalid_argument>(Journal::Component::Vruta, Journal::Context::CoroutineScheduling, std::source_location::current(),
223 "GraphicsRoutine constructed with invalid coroutine handle");
224 }
225}
uint32_t h
Definition InkPress.cpp:25
std::coroutine_handle< promise_type > m_handle
Handle to the underlying coroutine.
Definition Routine.hpp:654
@ CoroutineScheduling
Coroutine scheduling and temporal coordination (Vruta::TaskScheduler)
@ Vruta
Coroutines, schedulers, clocks, task management.

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