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

◆ cancel()

void MayaFlux::Kriya::Timer::cancel ( )

Cancels any scheduled callback.

This method cancels any currently scheduled callback, preventing it from executing. If no callback is scheduled, this method has no effect.

Definition at line 45 of file Timers.cpp.

46{
47 if (m_active && m_routine) {
49 m_routine = nullptr;
50 m_active = false;
51 }
52}
bool m_active
Flag indicating whether a callback is currently scheduled.
Definition Timers.hpp:106
Vruta::TaskScheduler & m_Scheduler
Reference to the scheduler that manages this timer.
Definition Timers.hpp:89
std::shared_ptr< Vruta::SoundRoutine > m_routine
The underlying computational routine that implements the timer.
Definition Timers.hpp:98
bool cancel_task(std::shared_ptr< Routine > task)
Cancels and removes a task from the scheduler.
Definition Scheduler.cpp:60

References MayaFlux::Vruta::TaskScheduler::cancel_task(), m_active, m_routine, and m_Scheduler.

Referenced by MayaFlux::Kriya::TimedAction::cancel(), MayaFlux::Kriya::NodeTimer::cancel(), and schedule().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: