fome-fw/firmware/controllers/system/SingleTimerExecutor.h

29 lines
562 B
C
Raw Normal View History

2015-07-10 06:01:56 -07:00
/**
* @file SingleTimerExecutor.h
*
* @date: Apr 18, 2014
2017-01-03 03:05:22 -08:00
* @author Andrey Belomutskiy, (c) 2012-2017
2015-07-10 06:01:56 -07:00
*/
#ifndef SINGLETIMEREXECUTOR_H_
#define SINGLETIMEREXECUTOR_H_
#include "scheduler.h"
#include "event_queue.h"
class Executor {
public:
Executor();
void scheduleByTime(scheduling_s *scheduling, efitimeus_t timeUs, schfunc_t callback, void *param);
2015-07-10 06:01:56 -07:00
void onTimerCallback();
private:
EventQueue queue;
bool reentrantFlag;
void doExecute();
void scheduleTimerCallback();
};
void initSignalExecutorImpl(void);
#endif /* SINGLETIMEREXECUTOR_H_ */