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:
parent
27cef23823
commit
7da0627f8e
|
@ -129,10 +129,9 @@ namespace Kernel
|
||||||
{
|
{
|
||||||
m_exit_status.semaphore.unblock();
|
m_exit_status.semaphore.unblock();
|
||||||
m_lock.unlock();
|
m_lock.unlock();
|
||||||
// TODO: add proper software reschedule
|
Scheduler::get().reschedule();
|
||||||
Scheduler::get().set_current_thread_sleeping(0);
|
m_lock.lock();
|
||||||
}
|
}
|
||||||
m_lock.lock();
|
|
||||||
|
|
||||||
m_threads.clear();
|
m_threads.clear();
|
||||||
for (auto& open_fd : m_open_files)
|
for (auto& open_fd : m_open_files)
|
||||||
|
|
Loading…
Reference in New Issue