[kernel] Add clear() method to wait_queue

Allow objects to clear out the wait_queue earlier than waiting for the
destructor by moving that functionality into wait_queue::clear().
This commit is contained in:
Justin C. Miller
2022-02-28 20:06:49 -08:00
parent 19105542e5
commit 446025fb65
4 changed files with 17 additions and 10 deletions

View File

@@ -41,8 +41,8 @@ mailbox::close()
for (auto &p : m_pending) {
delete p.val.msg;
p.val.sender->wake(no_message);
}
m_queue.clear();
}
void