PThreads are weird on OS X

This commit is contained in:
Pavel Krajcevski 2014-03-13 21:45:14 -04:00
parent b1ef548a7c
commit 914eeae284

View File

@ -140,6 +140,8 @@ void TCThread::Yield() {
uint64 TCThread::ThreadID() {
#ifdef __MINGW32__
return static_cast<uint64>(pthread_self().x);
#elif defined __APPLE__
return reinterpret_cast<uint64>(pthread_self());
#else
return static_cast<uint64>(pthread_self());
#endif