summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorGravatar bunnei2021-01-24 22:53:43 -0800
committerGravatar bunnei2021-01-28 21:42:26 -0800
commitff46ef7ea36632129a2b013ebb62016d6f59f22e (patch)
tree4a4cf3fb6fccc1f597f5ed45282264f0f853ccd0 /src/core/hle/kernel
parenthle: kernel: k_scheduler_lock: Cleanup. (diff)
downloadyuzu-ff46ef7ea36632129a2b013ebb62016d6f59f22e.tar.gz
yuzu-ff46ef7ea36632129a2b013ebb62016d6f59f22e.tar.xz
yuzu-ff46ef7ea36632129a2b013ebb62016d6f59f22e.zip
hle: kernel: threading: Fix bug with host thread naming.
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r--src/core/hle/kernel/kernel.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp
index 093886b7c..df309d523 100644
--- a/src/core/hle/kernel/kernel.cpp
+++ b/src/core/hle/kernel/kernel.cpp
@@ -211,9 +211,8 @@ struct KernelCore::Impl {
211 KThread* GetHostDummyThread() { 211 KThread* GetHostDummyThread() {
212 const thread_local auto thread = 212 const thread_local auto thread =
213 KThread::Create( 213 KThread::Create(
214 system, ThreadType::Main, 214 system, ThreadType::Main, fmt::format("DummyThread:{}", GetHostThreadId()), 0,
215 std::string{"DummyThread:" + GetHostThreadId()}, 0, KThread::DefaultThreadPriority, 215 KThread::DefaultThreadPriority, 0, static_cast<u32>(3), 0, nullptr,
216 0, static_cast<u32>(3), 0, nullptr,
217 []([[maybe_unused]] void* arg) { UNREACHABLE(); }, nullptr) 216 []([[maybe_unused]] void* arg) { UNREACHABLE(); }, nullptr)
218 .Unwrap(); 217 .Unwrap();
219 return thread.get(); 218 return thread.get();