Skip to content

Commit f6a5f91

Browse files
authored
1 parent 8e9f4ee commit f6a5f91

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

stl/src/cthread.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,7 @@ _CRTIMP2_PURE _Thrd_id_t __cdecl _Thrd_id() noexcept { // return unique id for c
103103
}
104104

105105
_CRTIMP2_PURE unsigned int __cdecl _Thrd_hardware_concurrency() noexcept { // return number of processors
106-
SYSTEM_INFO info;
107-
GetNativeSystemInfo(&info);
108-
return info.dwNumberOfProcessors;
106+
return GetActiveProcessorCount(ALL_PROCESSOR_GROUPS);
109107
}
110108

111109
// TRANSITION, ABI: _Thrd_create() is preserved for binary compatibility

0 commit comments

Comments
 (0)