Keep a single, portable implementation of OS::get_processor_count()

This commit is contained in:
Pedro J. Estébanez
2022-08-24 09:50:33 +02:00
parent d331b803b8
commit 6bf02c0162
5 changed files with 2 additions and 19 deletions

View File

@ -870,17 +870,6 @@ BOOL is_wow64() {
return wow64;
}
int OS_Windows::get_processor_count() const {
SYSTEM_INFO sysinfo;
if (is_wow64()) {
GetNativeSystemInfo(&sysinfo);
} else {
GetSystemInfo(&sysinfo);
}
return sysinfo.dwNumberOfProcessors;
}
String OS_Windows::get_processor_name() const {
const String id = "Hardware\\Description\\System\\CentralProcessor\\0";