Commit 42ab89ef authored by Jeroen Meijer's avatar Jeroen Meijer

workaround for OSX

parent d97924ec
......@@ -213,7 +213,8 @@ int CPUInfo::getThreadId (void) {
#elif defined(__linux) || defined(PTHREAD_KEYS_MAX)
// Consecutive thread id's in Linux are 1024 apart;
// dividing off the 1024 gives us an appropriate thread id.
return (int) pthread_self() >> 10; // >> 20; // FIX ME 10 // (>> 10 = / 1024)
// return (int) pthread_self() >> 10; // >> 20; // FIX ME 10 // (>> 10 = / 1024)
return -1;
#elif defined(POSIX) // FIX ME??
return (int) pthread_self();
#elif USE_SPROC
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment