criticalError("No slots in scheduling pool")

This commit is contained in:
rusefillc 2024-05-10 22:49:34 -04:00
parent aabc64be6d
commit 9fd4e930d3
1 changed files with 4 additions and 1 deletions

View File

@ -71,7 +71,10 @@ bool EventQueue::insertTask(scheduling_s *scheduling, efitick_t timeNt, action_s
// If still null, the free list is empty and all schedulings in the pool have been expended.
if (!scheduling) {
// TODO: should we warn or error here?
// todo: look into why units tests fail here
#if EFI_PROD_CODE
criticalError("No slots in scheduling pool");
#endif
return false;
}
}