rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
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
13class SingleTimerExecutor final : public Scheduler {
14public:
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();
25private:
27 bool reentrantFlag = false;
30};
31
34
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.
void cancel(scheduling_s *scheduling) override
Cancel the specified scheduling_s so that, if currently scheduled, it does not execute.
static WrapAround62 timeNt
Definition efitime.cpp:14
void initSingleTimerExecutorHardware()
void executorStatistics()