Mixbus likes hyperthreading on Mac
This commit is contained in:
parent
5a0b9a92a3
commit
6631d97ac0
@ -54,7 +54,11 @@ hardware_concurrency()
|
|||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
int count;
|
int count;
|
||||||
size_t size=sizeof(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;
|
return sysctlbyname("hw.physicalcpu",&count,&size,NULL,0)?0:count;
|
||||||
|
# endif
|
||||||
#elif defined(__FreeBSD__)
|
#elif defined(__FreeBSD__)
|
||||||
int count;
|
int count;
|
||||||
size_t size=sizeof(count);
|
size_t size=sizeof(count);
|
||||||
|
Loading…
Reference in New Issue
Block a user