summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/kernel.cpp
diff options
context:
space:
mode:
authorGravatar Liam2023-03-07 16:11:50 -0500
committerGravatar Liam2023-03-12 22:09:09 -0400
commit6bfb4c8f713323bb39b7e38a779c35583fc61bcc (patch)
tree6208bf4bbd1c303811384c8fe3d600560a4d3bfe /src/core/hle/kernel/kernel.cpp
parentkernel: prefer std::addressof (diff)
downloadyuzu-6bfb4c8f713323bb39b7e38a779c35583fc61bcc.tar.gz
yuzu-6bfb4c8f713323bb39b7e38a779c35583fc61bcc.tar.xz
yuzu-6bfb4c8f713323bb39b7e38a779c35583fc61bcc.zip
kernel: convert KThread to new style
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
-rw-r--r--src/core/hle/kernel/kernel.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp
index c236e9976..f35fa95b5 100644
--- a/src/core/hle/kernel/kernel.cpp
+++ b/src/core/hle/kernel/kernel.cpp
@@ -214,7 +214,6 @@ struct KernelCore::Impl {
214 cores[i] = std::make_unique<Kernel::PhysicalCore>(i, system, *schedulers[i]); 214 cores[i] = std::make_unique<Kernel::PhysicalCore>(i, system, *schedulers[i]);
215 215
216 auto* main_thread{Kernel::KThread::Create(system.Kernel())}; 216 auto* main_thread{Kernel::KThread::Create(system.Kernel())};
217 main_thread->SetName(fmt::format("MainThread:{}", core));
218 main_thread->SetCurrentCore(core); 217 main_thread->SetCurrentCore(core);
219 ASSERT(Kernel::KThread::InitializeMainThread(system, main_thread, core).IsSuccess()); 218 ASSERT(Kernel::KThread::InitializeMainThread(system, main_thread, core).IsSuccess());
220 219
@@ -356,7 +355,6 @@ struct KernelCore::Impl {
356 ASSERT(KThread::InitializeHighPriorityThread(system, shutdown_threads[core_id], {}, {}, 355 ASSERT(KThread::InitializeHighPriorityThread(system, shutdown_threads[core_id], {}, {},
357 core_id) 356 core_id)
358 .IsSuccess()); 357 .IsSuccess());
359 shutdown_threads[core_id]->SetName(fmt::format("SuspendThread:{}", core_id));
360 } 358 }
361 } 359 }
362 360
@@ -390,7 +388,6 @@ struct KernelCore::Impl {
390 KThread* GetHostDummyThread(KThread* existing_thread) { 388 KThread* GetHostDummyThread(KThread* existing_thread) {
391 auto initialize = [this](KThread* thread) { 389 auto initialize = [this](KThread* thread) {
392 ASSERT(KThread::InitializeDummyThread(thread, nullptr).IsSuccess()); 390 ASSERT(KThread::InitializeDummyThread(thread, nullptr).IsSuccess());
393 thread->SetName(fmt::format("DummyThread:{}", next_host_thread_id++));
394 return thread; 391 return thread;
395 }; 392 };
396 393