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

◆ EventChain()

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

Constructs an EventChain with an explicit scheduler.

Parameters
schedulerThe TaskScheduler to use for timing
nameOptional name for the event chain (useful for debugging)

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 13 of file Chain.cpp.

14 : m_Scheduler(scheduler)
15 , m_name(std::move(name))
16 , m_default_rate(scheduler.get_rate())
17{
18}
Vruta::TaskScheduler & m_Scheduler
Reference to the scheduler that manages timing.
Definition Chain.hpp:185
const std::string & name() const
Gets the name of the event chain.
Definition Chain.hpp:145
std::string m_name
Optional name for the event chain.
Definition Chain.hpp:210