2015-07-10 06:01:56 -07:00
|
|
|
/*
|
|
|
|
* @file signal_executir_sleep.h
|
|
|
|
|
|
|
|
* @date Oct 28, 2013
|
2020-01-13 18:57:43 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2020
|
2015-07-10 06:01:56 -07:00
|
|
|
*/
|
|
|
|
|
2020-01-20 22:40:11 -08:00
|
|
|
#pragma once
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2019-01-08 21:53:54 -08:00
|
|
|
#include "scheduler.h"
|
|
|
|
|
|
|
|
class SleepExecutor : public ExecutorInterface {
|
|
|
|
public:
|
2021-07-14 13:03:00 -07:00
|
|
|
void scheduleByTimestamp(const char *msg, scheduling_s *scheduling, efitimeus_t timeUs, action_s action) override;
|
|
|
|
void scheduleByTimestampNt(const char *msg, scheduling_s *scheduling, efitick_t timeNt, action_s action) override;
|
2020-01-06 21:41:18 -08:00
|
|
|
void scheduleForLater(scheduling_s *scheduling, int delayUs, action_s action) override;
|
2021-08-27 01:30:06 -07:00
|
|
|
void cancel(scheduling_s* s) override;
|
2019-01-08 21:53:54 -08:00
|
|
|
};
|