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

◆ EventChain()

MayaFlux::Kriya::EventChain::EventChain ( Vruta::TaskScheduler scheduler,
std::string  name = "",
Vruta::ProcessingToken  token = Vruta::ProcessingToken::SAMPLE_ACCURATE 
)

Constructs an EventChain with an explicit scheduler.

Parameters
schedulerThe TaskScheduler to use for timing
nameOptional name for the event chain (useful for debugging)
tokenProcessing token to determine which scheduler rate to use

Creates a new EventChain that will use the provided scheduler for timing operations. This allows for more control over which scheduler is used, which is useful in contexts where multiple processing engines might exist.

Definition at line 11 of file Chain.cpp.

12 : m_Scheduler(scheduler)
13 , m_name(std::move(name))
14 , m_token(token)
15 , m_default_rate(scheduler.get_rate(token))
16{
17}
Vruta::TaskScheduler & m_Scheduler
Reference to the scheduler that manages timing.
Definition Chain.hpp:188
const std::string & name() const
Gets the name of the event chain.
Definition Chain.hpp:148
Vruta::ProcessingToken m_token
Processing token to determine which scheduler rate to use.
Definition Chain.hpp:197
std::string m_name
Optional name for the event chain.
Definition Chain.hpp:222