rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Public Member Functions
Scheduler Struct Referenceabstract

#include <scheduler.h>

Inheritance diagram for Scheduler:
Inheritance graph
[legend]

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.
 

Detailed Description

Definition at line 305 of file scheduler.h.

Member Function Documentation

◆ cancel()

virtual void Scheduler::cancel ( scheduling_s scheduling)
pure virtual

Cancel the specified scheduling_s so that, if currently scheduled, it does not execute.

Parameters
schedulingThe scheduling_s to cancel.

Implemented in SingleTimerExecutor.

◆ schedule()

virtual void Scheduler::schedule ( const char msg,
scheduling_s scheduling,
efitick_t  targetTime,
action_s const &  action 
)
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.

Parameters
msgName of this event to use for logging in case of an error.
schedulingStorage to use for the scheduled event. If null, one will be used from the pool.
targetTimeWhen to execute the specified action. If this time is in the past or very near future, it may execute immediately.
actionAn action to execute at the specified time.

Implemented in SingleTimerExecutor.

Referenced by PrimeController::onIgnitionStateChanged(), PrimeController::onPrimeStart(), and InjectionEvent::onTriggerTooth().

Here is the caller graph for this function:

The documentation for this struct was generated from the following file: