rusefi/firmware/controllers/system/timer/scheduler.cpp

28 lines
456 B
C++
Raw Normal View History

/**
* @file scheduler.h
*
* @date October 1, 2020
*/
#include "pch.h"
#include "scheduler.h"
void action_s::execute() {
2024-01-05 14:53:54 -08:00
efiAssertVoid(ObdCode::CUSTOM_ERR_ASSERT, m_callback != NULL, "callback==null1");
m_callback(m_param);
}
schfunc_t action_s::getCallback() const {
2024-01-05 14:53:54 -08:00
return m_callback;
}
void * action_s::getArgument() const {
2024-01-05 14:53:54 -08:00
return m_param;
}
#if EFI_UNIT_TEST
efitick_t scheduling_s::getMomentUs() const {
return NT2US(momentNt);
}
#endif