mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 09:06:33 +01:00
NO-OP: whitespace
This commit is contained in:
parent
1ed9564ffd
commit
cec84d242d
1 changed files with 13 additions and 13 deletions
|
|
@ -50,23 +50,23 @@ hardware_concurrency()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#if defined(PTW32_VERSION) || defined(__hpux)
|
#if defined(PTW32_VERSION) || defined(__hpux)
|
||||||
return pthread_num_processors_np();
|
return pthread_num_processors_np();
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
int count;
|
int count;
|
||||||
size_t size=sizeof(count);
|
size_t size=sizeof(count);
|
||||||
return sysctlbyname("hw.physicalcpu",&count,&size,NULL,0)?0:count;
|
return sysctlbyname("hw.physicalcpu",&count,&size,NULL,0)?0:count;
|
||||||
#elif defined(__FreeBSD__)
|
#elif defined(__FreeBSD__)
|
||||||
int count;
|
int count;
|
||||||
size_t size=sizeof(count);
|
size_t size=sizeof(count);
|
||||||
return sysctlbyname("hw.ncpu",&count,&size,NULL,0)?0:count;
|
return sysctlbyname("hw.ncpu",&count,&size,NULL,0)?0:count;
|
||||||
#elif defined(HAVE_UNISTD) && defined(_SC_NPROCESSORS_ONLN)
|
#elif defined(HAVE_UNISTD) && defined(_SC_NPROCESSORS_ONLN)
|
||||||
int const count=sysconf(_SC_NPROCESSORS_ONLN);
|
int const count=sysconf(_SC_NPROCESSORS_ONLN);
|
||||||
return (count>0)?count:0;
|
return (count>0)?count:0;
|
||||||
#elif defined(PLATFORM_WINDOWS)
|
#elif defined(PLATFORM_WINDOWS)
|
||||||
SYSTEM_INFO sys_info;
|
SYSTEM_INFO sys_info;
|
||||||
GetSystemInfo( &sys_info );
|
GetSystemInfo( &sys_info );
|
||||||
return sys_info.dwNumberOfProcessors;
|
return sys_info.dwNumberOfProcessors;
|
||||||
#else
|
#else
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue