13
0

Mixbus likes hyperthreading on Mac

This commit is contained in:
Robin Gareus 2019-04-12 18:30:52 +02:00
parent 5a0b9a92a3
commit 6631d97ac0
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View 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);