From 6631d97ac080f797556c8e12f145c26c73302d04 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 12 Apr 2019 18:30:52 +0200 Subject: [PATCH] Mixbus likes hyperthreading on Mac --- libs/pbd/cpus.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/pbd/cpus.cc b/libs/pbd/cpus.cc index fed7725b76..af58221a1f 100644 --- 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);