Kernel Scheduler: Make sure the global scheduler shutdowns correctly.

This commit is contained in:
Fernando Sahmkow 2019-10-12 08:21:51 -04:00 committed by FernandoS27
parent b3c1deba49
commit 25f8606a6d
7 changed files with 31 additions and 0 deletions

View file

@ -304,6 +304,13 @@ public:
return levels[priority == Depth ? 63 : priority].back();
}
void clear() {
used_priorities = 0;
for (std::size_t i = 0; i < Depth; i++) {
levels[i].clear();
}
}
private:
using const_list_iterator = typename std::list<T>::const_iterator;