mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 21:41:26 +12:00
Mac OSX: use __thread for thread-local storage
This commit is contained in:
parent
64cfab5b46
commit
e7f0efa56d
2 changed files with 4 additions and 0 deletions
|
@ -8,6 +8,8 @@ __forceinline void SM_Sleep()
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
__declspec(thread)
|
__declspec(thread)
|
||||||
|
#elif __APPLE__
|
||||||
|
__thread
|
||||||
#else
|
#else
|
||||||
thread_local
|
thread_local
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -3,6 +3,8 @@
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
__declspec(thread)
|
__declspec(thread)
|
||||||
|
#elif __APPLE__
|
||||||
|
__thread
|
||||||
#else
|
#else
|
||||||
thread_local
|
thread_local
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue