mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-11 13:27:56 -05:00
hle: kernel: Ensure all kernel objects with KAutoObject are properly created.
This commit is contained in:
@ -793,6 +793,7 @@ void KScheduler::UpdateLastContextSwitchTime(KThread* thread, Process* process)
|
||||
|
||||
void KScheduler::Initialize() {
|
||||
idle_thread = std::make_unique<KThread>(system.Kernel());
|
||||
KAutoObject::Create(idle_thread.get());
|
||||
ASSERT(KThread::InitializeIdleThread(system, idle_thread.get(), core_id).IsSuccess());
|
||||
idle_thread->SetName(fmt::format("IdleThread:{}", core_id));
|
||||
}
|
||||
|
Reference in New Issue
Block a user