Kernel/Thread: move thread queue, current thread, and scheduling related function into the manager
As we touched it, remove IPC::GetCommandBuffer
This commit is contained in:
parent
876729ab52
commit
0478bc3dee
14 changed files with 123 additions and 146 deletions
|
@ -36,7 +36,7 @@ SharedPtr<Mutex> KernelSystem::CreateMutex(bool initial_locked, std::string name
|
|||
|
||||
// Acquire mutex with current thread if initialized as locked
|
||||
if (initial_locked)
|
||||
mutex->Acquire(GetCurrentThread());
|
||||
mutex->Acquire(thread_manager->GetCurrentThread());
|
||||
|
||||
return mutex;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue