kernel/Thread: move thread list into the manager

This commit is contained in:
Weiyi Wang
2018-10-26 16:07:45 -04:00
parent 7fc61920cc
commit 20ae37ba4f
6 changed files with 19 additions and 26 deletions
+1 -1
View File
@@ -154,7 +154,7 @@ static void ExitProcess() {
current_process->status = ProcessStatus::Exited;
// Stop all the process threads that are currently waiting for objects.
auto& thread_list = GetThreadList();
auto& thread_list = kernel.GetThreadManager().GetThreadList();
for (auto& thread : thread_list) {
if (thread->owner_process != current_process)
continue;