rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
controllers
system
timer
single_timer_executor.h
Go to the documentation of this file.
1
/**
2
* @file single_timer_executor.h
3
*
4
* @date: Apr 18, 2014
5
* @author Andrey Belomutskiy, (c) 2012-2020
6
*/
7
8
#pragma once
9
10
#include "
scheduler.h
"
11
#include "
event_queue.h
"
12
13
class
SingleTimerExecutor
final :
public
Scheduler
{
14
public
:
15
SingleTimerExecutor
();
16
void
schedule
(
const
char
*msg,
scheduling_s
*scheduling, efitick_t
timeNt
,
action_s
const
& action)
override
;
17
void
cancel
(
scheduling_s
* scheduling)
override
;
18
19
void
onTimerCallback
();
20
int
timerCallbackCounter
= 0;
21
int
scheduleCounter
= 0;
22
int
maxExecuteCounter
= 0;
23
int
executeCounter
;
24
int
executeAllPendingActionsInvocationCounter
= 0;
25
private
:
26
EventQueue
queue
;
27
bool
reentrantFlag
=
false
;
28
void
executeAllPendingActions
();
29
void
scheduleTimerCallback
();
30
};
31
32
void
initSingleTimerExecutorHardware
();
33
void
executorStatistics
();
34
EventQueue
Definition
event_queue.h:19
SingleTimerExecutor
Definition
single_timer_executor.h:13
SingleTimerExecutor::timerCallbackCounter
int timerCallbackCounter
Definition
single_timer_executor.h:20
SingleTimerExecutor::executeAllPendingActions
void executeAllPendingActions()
Definition
single_timer_executor.cpp:95
SingleTimerExecutor::schedule
void schedule(const char *msg, scheduling_s *scheduling, efitick_t timeNt, action_s const &action) override
Schedule an action to be executed in the future.
Definition
single_timer_executor.cpp:48
SingleTimerExecutor::reentrantFlag
bool reentrantFlag
Definition
single_timer_executor.h:27
SingleTimerExecutor::onTimerCallback
void onTimerCallback()
Definition
single_timer_executor.cpp:83
SingleTimerExecutor::executeCounter
int executeCounter
Definition
single_timer_executor.h:23
SingleTimerExecutor::queue
EventQueue queue
Definition
single_timer_executor.h:26
SingleTimerExecutor::executeAllPendingActionsInvocationCounter
int executeAllPendingActionsInvocationCounter
Definition
single_timer_executor.h:24
SingleTimerExecutor::SingleTimerExecutor
SingleTimerExecutor()
Definition
single_timer_executor.cpp:42
SingleTimerExecutor::cancel
void cancel(scheduling_s *scheduling) override
Cancel the specified scheduling_s so that, if currently scheduled, it does not execute.
Definition
single_timer_executor.cpp:76
SingleTimerExecutor::scheduleCounter
int scheduleCounter
Definition
single_timer_executor.h:21
SingleTimerExecutor::maxExecuteCounter
int maxExecuteCounter
Definition
single_timer_executor.h:22
SingleTimerExecutor::scheduleTimerCallback
void scheduleTimerCallback()
Definition
single_timer_executor.cpp:139
action_s
Definition
scheduler.h:98
timeNt
static WrapAround62 timeNt
Definition
efitime.cpp:14
event_queue.h
scheduler.h
initSingleTimerExecutorHardware
void initSingleTimerExecutorHardware()
Definition
single_timer_executor.cpp:157
executorStatistics
void executorStatistics()
Definition
single_timer_executor.cpp:161
Scheduler
Definition
scheduler.h:305
scheduling_s
Definition
scheduler.h:269
Generated on Sat Sep 27 2025 00:10:06 for rusEFI by
1.9.8