This commit is contained in:
rusefi 2019-07-13 10:16:47 -04:00
parent e093819e73
commit 84c6232b25
1 changed files with 8 additions and 1 deletions

View File

@ -24,10 +24,17 @@ public:
#if !EFI_UNIT_TEST
virtual_timer_t timer;
#endif /* EFI_UNIT_TEST */
virtual int getPeriodMs() = 0;
virtual void PeriodicTask() = 0;
/**
* This method is invoked after corresponding PeriodicTask() invocation
*/
virtual int getPeriodMs() = 0;
/**
* This invokes PeriodicTask() immediately and starts the cycle of invocations and sleeps
*/
void Start() {
runAndScheduleNext(this);
}