mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2024-11-28 03:34:20 +01:00
PThreads are weird on OS X
This commit is contained in:
parent
b1ef548a7c
commit
914eeae284
@ -140,6 +140,8 @@ void TCThread::Yield() {
|
|||||||
uint64 TCThread::ThreadID() {
|
uint64 TCThread::ThreadID() {
|
||||||
#ifdef __MINGW32__
|
#ifdef __MINGW32__
|
||||||
return static_cast<uint64>(pthread_self().x);
|
return static_cast<uint64>(pthread_self().x);
|
||||||
|
#elif defined __APPLE__
|
||||||
|
return reinterpret_cast<uint64>(pthread_self());
|
||||||
#else
|
#else
|
||||||
return static_cast<uint64>(pthread_self());
|
return static_cast<uint64>(pthread_self());
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user