summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/svc
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/svc
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/svc')
-rw-r--r--src/core/hle/kernel/svc/svc_thread.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/hle/kernel/svc/svc_thread.cpp b/src/core/hle/kernel/svc/svc_thread.cpp
index a16fc7ae3..50991fb62 100644
--- a/src/core/hle/kernel/svc/svc_thread.cpp
+++ b/src/core/hle/kernel/svc/svc_thread.cpp
@@ -59,9 +59,6 @@ Result CreateThread(Core::System& system, Handle* out_handle, VAddr entry_point,
59 priority, core_id, std::addressof(process))); 59 priority, core_id, std::addressof(process)));
60 } 60 }
61 61
62 // Set the thread name for debugging purposes.
63 thread->SetName(fmt::format("thread[entry_point={:X}, handle={:X}]", entry_point, *out_handle));
64
65 // Commit the thread reservation. 62 // Commit the thread reservation.
66 thread_reservation.Commit(); 63 thread_reservation.Commit();
67 64
@@ -252,7 +249,7 @@ Result GetThreadList(Core::System& system, s32* out_num_threads, VAddr out_threa
252 249
253 auto list_iter = thread_list.cbegin(); 250 auto list_iter = thread_list.cbegin();
254 for (std::size_t i = 0; i < copy_amount; ++i, ++list_iter) { 251 for (std::size_t i = 0; i < copy_amount; ++i, ++list_iter) {
255 memory.Write64(out_thread_ids, (*list_iter)->GetThreadID()); 252 memory.Write64(out_thread_ids, (*list_iter)->GetThreadId());
256 out_thread_ids += sizeof(u64); 253 out_thread_ids += sizeof(u64);
257 } 254 }
258 255