mirror of
https://github.com/yuzu-emu/FasTC
synced 2024-11-26 01:18:03 +00:00
PThreads are weird on OS X
This commit is contained in:
parent
b1ef548a7c
commit
914eeae284
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue