MayaFlux 0.1.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 16 of file Routine.cpp.

17 : m_handle(h)
18{
19 if (!m_handle || !m_handle.address()) {
20 error<std::invalid_argument>(Journal::Component::Vruta, Journal::Context::CoroutineScheduling, std::source_location::current(),
21 "SoundRoutine constructed with invalid coroutine handle");
22 }
23}
std::coroutine_handle< promise_type > m_handle
Handle to the underlying coroutine.
Definition Routine.hpp:460
@ CoroutineScheduling
Coroutine scheduling and temporal coordination (Vruta::TaskScheduler)
@ Vruta
Coroutines, schedulers, clocks, task management.

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