docs
This commit is contained in:
parent
e093819e73
commit
84c6232b25
|
@ -24,10 +24,17 @@ public:
|
||||||
#if !EFI_UNIT_TEST
|
#if !EFI_UNIT_TEST
|
||||||
virtual_timer_t timer;
|
virtual_timer_t timer;
|
||||||
#endif /* EFI_UNIT_TEST */
|
#endif /* EFI_UNIT_TEST */
|
||||||
virtual int getPeriodMs() = 0;
|
|
||||||
|
|
||||||
virtual void PeriodicTask() = 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() {
|
void Start() {
|
||||||
runAndScheduleNext(this);
|
runAndScheduleNext(this);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue