fancier C++ initialization

This commit is contained in:
rusefi 2019-10-08 01:36:35 -04:00
parent 74c8b59e44
commit bd7b286ae4
2 changed files with 7 additions and 15 deletions

View File

@ -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);

View File

@ -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 {