mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-12 14:48:52 +00:00
macos: Remove need for TLS patch by storing TCB pointer in FS.
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
#include "core/libraries/kernel/threads/threads.h"
|
||||
#include "core/libraries/libs.h"
|
||||
#include "core/linker.h"
|
||||
#include "core/tls.h"
|
||||
#ifdef _WIN64
|
||||
#include <windows.h>
|
||||
#else
|
||||
@@ -987,6 +988,7 @@ static void cleanup_thread(void* arg) {
|
||||
destructor(value);
|
||||
}
|
||||
}
|
||||
Core::SetTcbBase(nullptr);
|
||||
thread->is_almost_done = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user