We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 358e9a5 commit 0675385Copy full SHA for 0675385
libcxx/src/thread.cpp
@@ -74,9 +74,7 @@ unsigned thread::hardware_concurrency() noexcept {
74
return 0;
75
return static_cast<unsigned>(result);
76
#elif defined(_LIBCPP_WIN32API)
77
- SYSTEM_INFO info;
78
- GetSystemInfo(&info);
79
- return info.dwNumberOfProcessors;
+ return static_cast<unsigned>(GetActiveProcessorCount(ALL_PROCESSOR_GROUPS));
80
#else // defined(CTL_HW) && defined(HW_NCPU)
81
// TODO: grovel through /proc or check cpuid on x86 and similar
82
// instructions on other architectures.
0 commit comments