We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e9f4ee commit f6a5f91Copy full SHA for f6a5f91
stl/src/cthread.cpp
@@ -103,9 +103,7 @@ _CRTIMP2_PURE _Thrd_id_t __cdecl _Thrd_id() noexcept { // return unique id for c
103
}
104
105
_CRTIMP2_PURE unsigned int __cdecl _Thrd_hardware_concurrency() noexcept { // return number of processors
106
- SYSTEM_INFO info;
107
- GetNativeSystemInfo(&info);
108
- return info.dwNumberOfProcessors;
+ return GetActiveProcessorCount(ALL_PROCESSOR_GROUPS);
109
110
111
// TRANSITION, ABI: _Thrd_create() is preserved for binary compatibility
0 commit comments