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

◆ SoundRoutine() [1/3]

MayaFlux::Vruta::SoundRoutine::SoundRoutine ( std::coroutine_handle< promise_type >  h)

Constructs a SoundRoutine from a coroutine handle.

Parameters
hHandle to the coroutine

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

Definition at line 39 of file Routine.cpp.

40 : m_handle(h)
41{
42 if (!m_handle || !m_handle.address()) {
43 error<std::invalid_argument>(Journal::Component::Vruta, Journal::Context::CoroutineScheduling, std::source_location::current(),
44 "SoundRoutine constructed with invalid coroutine handle");
45 }
46}
uint32_t h
Definition InkPress.cpp:29
std::coroutine_handle< promise_type > m_handle
Handle to the underlying coroutine.
Definition Routine.hpp:468
@ CoroutineScheduling
Coroutine scheduling and temporal coordination (Vruta::TaskScheduler)
@ Vruta
Coroutines, schedulers, clocks, task management.

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