MayaFlux 0.2.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 222 of file Routine.cpp.

223 : m_handle(h)
224{
225 if (!m_handle || !m_handle.address()) {
226 error<std::invalid_argument>(Journal::Component::Vruta, Journal::Context::CoroutineScheduling, std::source_location::current(),
227 "GraphicsRoutine constructed with invalid coroutine handle");
228 }
229}
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.