Просмотр исходного кода

hle: kernel: threading: Fix bug with host thread naming.

bunnei 5 лет назад
Родитель
Сommit
ff46ef7ea3
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      src/core/hle/kernel/kernel.cpp

+ 2 - 3
src/core/hle/kernel/kernel.cpp

@@ -211,9 +211,8 @@ struct KernelCore::Impl {
     KThread* GetHostDummyThread() {
     KThread* GetHostDummyThread() {
         const thread_local auto thread =
         const thread_local auto thread =
             KThread::Create(
             KThread::Create(
-                system, ThreadType::Main,
-                std::string{"DummyThread:" + GetHostThreadId()}, 0, KThread::DefaultThreadPriority,
-                0, static_cast<u32>(3), 0, nullptr,
+                system, ThreadType::Main, fmt::format("DummyThread:{}", GetHostThreadId()), 0,
+                KThread::DefaultThreadPriority, 0, static_cast<u32>(3), 0, nullptr,
                 []([[maybe_unused]] void* arg) { UNREACHABLE(); }, nullptr)
                 []([[maybe_unused]] void* arg) { UNREACHABLE(); }, nullptr)
                 .Unwrap();
                 .Unwrap();
         return thread.get();
         return thread.get();