rusEFI
The most advanced open source ECU
|
#include <scheduler.h>
Public Member Functions | |
virtual void | schedule (const char *msg, scheduling_s *scheduling, efitick_t targetTime, action_s const &action)=0 |
Schedule an action to be executed in the future. | |
virtual void | cancel (scheduling_s *scheduling)=0 |
Cancel the specified scheduling_s so that, if currently scheduled, it does not execute. | |
Definition at line 305 of file scheduler.h.
|
pure virtual |
Cancel the specified scheduling_s so that, if currently scheduled, it does not execute.
scheduling | The scheduling_s to cancel. |
Implemented in SingleTimerExecutor.
|
pure virtual |
Schedule an action to be executed in the future.
scheduleByAngle is useful if you want to schedule something in terms of crank angle instead of time.
msg | Name of this event to use for logging in case of an error. |
scheduling | Storage to use for the scheduled event. If null, one will be used from the pool. |
targetTime | When to execute the specified action. If this time is in the past or very near future, it may execute immediately. |
action | An action to execute at the specified time. |
Implemented in SingleTimerExecutor.
Referenced by PrimeController::onIgnitionStateChanged(), PrimeController::onPrimeStart(), and InjectionEvent::onTriggerTooth().