mirror of https://github.com/FOME-Tech/fome-fw.git
fancier C++ initialization
This commit is contained in:
parent
74c8b59e44
commit
bd7b286ae4
|
@ -23,14 +23,6 @@ extern bool verboseMode;
|
|||
|
||||
uint32_t maxSchedulingPrecisionLoss = 0;
|
||||
|
||||
scheduling_s::scheduling_s() {
|
||||
callback = nullptr;
|
||||
next = nullptr;
|
||||
param = nullptr;
|
||||
isScheduled = false;
|
||||
momentX = 0;
|
||||
}
|
||||
|
||||
EventQueue::EventQueue() {
|
||||
head = nullptr;
|
||||
setLateDelay(100);
|
||||
|
|
|
@ -13,17 +13,17 @@ typedef void (*schfunc_t)(void *);
|
|||
|
||||
class scheduling_s {
|
||||
public:
|
||||
scheduling_s();
|
||||
|
||||
#if EFI_SIGNAL_EXECUTOR_SLEEP
|
||||
virtual_timer_t timer;
|
||||
#endif /* EFI_SIGNAL_EXECUTOR_SLEEP */
|
||||
|
||||
volatile efitime_t momentX;
|
||||
schfunc_t callback;
|
||||
void *param;
|
||||
scheduling_s *next;
|
||||
bool isScheduled;
|
||||
volatile efitime_t momentX = 0;
|
||||
bool isScheduled = false;
|
||||
|
||||
scheduling_s *next = nullptr;
|
||||
|
||||
schfunc_t callback = nullptr;
|
||||
void *param = nullptr;
|
||||
};
|
||||
|
||||
class ExecutorInterface {
|
||||
|
|
Loading…
Reference in New Issue