Browse Source

omg you actually need that TLS

Signed-off-by: lizzie <lizzie@eden-emu.dev>
pull/2908/head
lizzie 3 months ago
parent
commit
c5d96f5dab
No known key found for this signature in database GPG Key ID: 287378CADCAB13
  1. 5
      src/core/hle/kernel/kernel.cpp

5
src/core/hle/kernel/kernel.cpp

@ -380,9 +380,8 @@ struct KernelCore::Impl {
ASSERT(KThread::InitializeDummyThread(thread, nullptr).IsSuccess());
return thread;
}};
KThread raw_thread{system.Kernel()};
KThread* thread = existing_thread ? existing_thread : initialize(&raw_thread);
thread_local KThread raw_thread{system.Kernel()};
thread_local KThread* thread = existing_thread ? existing_thread : initialize(&raw_thread);
return thread;
}

Loading…
Cancel
Save