mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-27 01:02:48 +01:00
hle: kernel: threading: Fix bug with host thread naming.
This commit is contained in:
parent
6ee8340a6b
commit
ff46ef7ea3
1 changed files with 2 additions and 3 deletions
|
@ -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,
|
system, ThreadType::Main, fmt::format("DummyThread:{}", GetHostThreadId()), 0,
|
||||||
std::string{"DummyThread:" + GetHostThreadId()}, 0, KThread::DefaultThreadPriority,
|
KThread::DefaultThreadPriority, 0, static_cast<u32>(3), 0, nullptr,
|
||||||
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();
|
||||||
|
|
Loading…
Reference in a new issue