[kernel] Empty wait_queue after calling clear()

Bugfix - wait_queue::clear() was not emptying out its util::deque after
waking all the threads, so it would just grow forever.
This commit is contained in:
Justin C. Miller
2023-02-08 22:29:49 -08:00
parent 393db1e792
commit 71069cb38b
2 changed files with 12 additions and 5 deletions

View File

@@ -58,4 +58,5 @@ wait_queue::clear(uint64_t value)
if (!t->exited()) t->wake(value);
t->handle_release();
}
m_threads.clear();
}