Kernel: Process::exit() now uses the new Scheduler::reschedule()

We use this new function while waiting for all blocking threads to
resume execution
This commit is contained in:
Bananymous 2023-06-09 00:49:19 +03:00
parent 27cef23823
commit 7da0627f8e
1 changed files with 2 additions and 3 deletions

View File

@ -129,10 +129,9 @@ namespace Kernel
{
m_exit_status.semaphore.unblock();
m_lock.unlock();
// TODO: add proper software reschedule
Scheduler::get().set_current_thread_sleeping(0);
Scheduler::get().reschedule();
m_lock.lock();
}
m_lock.lock();
m_threads.clear();
for (auto& open_fd : m_open_files)