kernel/thread: add ThreadManager
This commit is contained in:
parent
f3ee5feb02
commit
34f1fe088c
4 changed files with 24 additions and 1 deletions
|
@ -21,6 +21,7 @@ KernelSystem::KernelSystem(u32 system_mode) {
|
|||
Kernel::MemoryInit(system_mode);
|
||||
|
||||
resource_limits = std::make_unique<ResourceLimitList>(*this);
|
||||
thread_manager = std::make_unique<ThreadManager>();
|
||||
Kernel::ThreadingInit();
|
||||
Kernel::TimersInit();
|
||||
}
|
||||
|
@ -53,4 +54,12 @@ void KernelSystem::SetCurrentProcess(SharedPtr<Process> process) {
|
|||
current_process = std::move(process);
|
||||
}
|
||||
|
||||
ThreadManager& KernelSystem::GetThreadManager() {
|
||||
return *thread_manager;
|
||||
}
|
||||
|
||||
const ThreadManager& KernelSystem::GetThreadManager() const {
|
||||
return *thread_manager;
|
||||
}
|
||||
|
||||
} // namespace Kernel
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue