Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
divine-ltsmin-deb
Commits
42ab89ef
Commit
42ab89ef
authored
Jan 22, 2016
by
Jeroen Meijer
Browse files
workaround for OSX
parent
d97924ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
hoard/heaplayers/util/cpuinfo.h
View file @
42ab89ef
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment