mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 09:06:33 +01:00
Mixbus likes hyperthreading on Mac
This commit is contained in:
parent
5a0b9a92a3
commit
6631d97ac0
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue