monitorReuse idea is dead

This commit is contained in:
rusefi 2017-05-15 09:21:40 -04:00
parent 21ec952df9
commit b2d1f3e446
4 changed files with 3 additions and 11 deletions

View File

@ -1736,7 +1736,7 @@ typedef enum {
* Should not happen
*/
CUSTOM_OBD_SKIPPED_FUEL = 6046,
CUSTOM_OBD_SCH_REUSE = 6047,
CUSTOM_OBD_6047 = 6047,
CUSTOM_OBD_PIN_CONFLICT = 6048,
CUSTOM_OBD_LOW_FREQUENCY = 6049,

View File

@ -35,13 +35,10 @@ bool EventQueue::checkIfPending(scheduling_s *scheduling) {
return assertNotInList<scheduling_s>(head, scheduling);
}
bool EventQueue::insertTask(scheduling_s *scheduling, efitime_t timeX, schfunc_t callback, void *param) {
return insertTask(false, "*", scheduling, timeX, callback, param);
}
/**
* @return true if inserted into the head of the list
*/
bool EventQueue::insertTask(const bool monitorReuse, const char *prefix, scheduling_s *scheduling, efitime_t timeX, schfunc_t callback, void *param) {
bool EventQueue::insertTask(scheduling_s *scheduling, efitime_t timeX, schfunc_t callback, void *param) {
#if EFI_UNIT_TEST || defined(__DOXYGEN__)
assertListIsSorted();
#endif /* EFI_UNIT_TEST */
@ -50,10 +47,6 @@ bool EventQueue::insertTask(const bool monitorReuse, const char *prefix, schedul
// please note that simulator does not use this code at all - simulator uses signal_executor_sleep
if (scheduling->isScheduled) {
if (monitorReuse) {
warning(CUSTOM_OBD_SCH_REUSE, "reuse [%s]", prefix);
}
#if EFI_UNIT_TEST || defined(__DOXYGEN__)
printf("Already scheduled was %d\r\n", (int)scheduling->momentX);
printf("Already scheduled now %d\r\n", (int)timeX);

View File

@ -52,7 +52,6 @@ public:
/**
* O(size) - linear search in sorted linked list
*/
bool insertTask(const bool monitorReuse, const char *prefix, scheduling_s *scheduling, efitime_t timeX, schfunc_t callback, void *param);
bool insertTask(scheduling_s *scheduling, efitime_t timeX, schfunc_t callback, void *param);
int executeAll(efitime_t now);

View File

@ -31,7 +31,7 @@ void scheduleByTime(const bool monitorReuse, const char *prefix, scheduling_s *s
if (debugSignalExecutor) {
printf("scheduleByTime %d\r\n", time);
}
schedulingQueue.insertTask(false, prefix, scheduling, time, callback, param);
schedulingQueue.insertTask(scheduling, time, callback, param);
}
void initSignalExecutorImpl(void) {