projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
5a0b9a9
)
Mixbus likes hyperthreading on Mac
author
Robin Gareus
<robin@gareus.org>
Fri, 12 Apr 2019 16:30:52 +0000
(18:30 +0200)
committer
Robin Gareus
<robin@gareus.org>
Fri, 12 Apr 2019 16:30:52 +0000
(18:30 +0200)
libs/pbd/cpus.cc
patch
|
blob
|
history
diff --git
a/libs/pbd/cpus.cc
b/libs/pbd/cpus.cc
index fed7725b766d819f33aef2148e3030edbc25a9db..af58221a1f12ed33805028203cf32209595ee2fd 100644
(file)
--- a/
libs/pbd/cpus.cc
+++ b/
libs/pbd/cpus.cc
@@
-54,7
+54,11
@@
hardware_concurrency()
#elif defined(__APPLE__)
int count;
size_t size=sizeof(count);
+# ifdef MIXBUS
+ return sysctlbyname("hw.logicalcpu",&count,&size,NULL,0)?0:count;
+# else
return sysctlbyname("hw.physicalcpu",&count,&size,NULL,0)?0:count;
+# endif
#elif defined(__FreeBSD__)
int count;
size_t size=sizeof(count);