Mixbus likes hyperthreading on Mac
authorRobin Gareus <robin@gareus.org>
Fri, 12 Apr 2019 16:30:52 +0000 (18:30 +0200)
committerRobin Gareus <robin@gareus.org>
Fri, 12 Apr 2019 16:30:52 +0000 (18:30 +0200)
libs/pbd/cpus.cc

index fed7725b766d819f33aef2148e3030edbc25a9db..af58221a1f12ed33805028203cf32209595ee2fd 100644 (file)
@@ -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);