MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Vruta::complex_promise Struct Reference

Coroutine promise type for complex processing tasks with multi-rate scheduling. More...

#include <Promise.hpp>

+ Inheritance diagram for MayaFlux::Vruta::complex_promise:
+ Collaboration diagram for MayaFlux::Vruta::complex_promise:

Public Member Functions

ComplexRoutine get_return_object ()
 
- Public Member Functions inherited from MayaFlux::Vruta::routine_promise< ComplexRoutine >
ComplexRoutine get_return_object ()
 
std::suspend_never initial_suspend ()
 Determines whether the coroutine suspends immediately upon creation.
 
std::suspend_always final_suspend () noexcept
 Determines whether the coroutine suspends before destruction.
 
void return_void ()
 Handles the coroutine's void return.
 
void unhandled_exception ()
 Handles exceptions thrown from within the coroutine.
 
void set_state (const std::string &key, T value)
 Stores a value in the state dictionary.
 
T * get_state (const std::string &key)
 Retrieves a value from the state dictionary.
 
void domain_mismatch_error (const std::string &awaiter_name, const std::string &suggestion)
 

Public Attributes

ProcessingToken processing_token { ProcessingToken::MULTI_RATE }
 
bool sync_to_clock = true
 
uint64_t next_sample = 0
 
uint64_t next_frame = 0
 
- Public Attributes inherited from MayaFlux::Vruta::routine_promise< ComplexRoutine >
const ProcessingToken processing_token
 Token indicating how this coroutine should be processed.
 
bool auto_resume
 Flag indicating whether the coroutine should be automatically resumed.
 
bool should_terminate
 Flag indicating whether the coroutine should be terminated.
 
std::unordered_map< std::string, std::any > state
 Dictionary for storing arbitrary state data.
 
const bool sync_to_clock
 Flag indicating whether the coroutine should synchronize with the audio clock.
 
uint64_t delay_amount
 Amount of delay requested by the coroutine.
 

Detailed Description

Coroutine promise type for complex processing tasks with multi-rate scheduling.

Definition at line 335 of file Promise.hpp.


The documentation for this struct was generated from the following file: