mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-06-06 01:13:45 -04:00
shuffle tls
This commit is contained in:
parent
1fd762fd31
commit
8568193e1b
1 changed files with 2 additions and 3 deletions
|
|
@ -417,8 +417,7 @@ struct KernelCore::Impl {
|
|||
return is_shutting_down.load(std::memory_order_relaxed);
|
||||
}
|
||||
|
||||
KThread* GetCurrentEmuThread() {
|
||||
auto& t = tls_data;
|
||||
KThread* GetCurrentEmuThread(ThreadLocalData& t) {
|
||||
return t.current_thread ? t.current_thread : (t.current_thread = GetHostDummyThread(t, nullptr));
|
||||
}
|
||||
|
||||
|
|
@ -1125,7 +1124,7 @@ u32 KernelCore::GetCurrentHostThreadID() const {
|
|||
}
|
||||
|
||||
KThread* KernelCore::GetCurrentEmuThread() const {
|
||||
return impl->GetCurrentEmuThread();
|
||||
return impl->GetCurrentEmuThread(Impl::tls_data);
|
||||
}
|
||||
|
||||
void KernelCore::SetCurrentEmuThread(KThread* thread) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue