|
MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Kriya::TimedAction::execute | ( | std::function< void()> | start_func, |
| std::function< void()> | end_func, | ||
| double | duration_seconds | ||
| ) |
Executes a pair of functions with a time interval between them.
| start_func | Function to execute immediately |
| end_func | Function to execute after the duration |
| duration_seconds | Time between start_func and end_func (in seconds) |
This method executes start_func immediately, then schedules end_func to execute after the specified duration. This creates a timed action that starts now and automatically ends after the duration.
If an action is already in progress, it is cancelled before starting the new one.
Definition at line 60 of file Timers.cpp.
References cancel(), m_timer, and MayaFlux::Kriya::Timer::schedule().
Here is the call graph for this function: