[PATCH 2/2] msvcp140_atomic_wait: Implement __std_parallel_algorithms_hw_threads.
25 Jan
25 Jan
1:02 p.m.
Hi Daniel, On 1/24/22 23:59, Daniel Lehman wrote:
+unsigned int __stdcall __std_parallel_algorithms_hw_threads(void) +{ + static unsigned int val = -1; + + TRACE("()\n"); + + if (val == -1) + { + SYSTEM_INFO si; + + GetSystemInfo(&si); + val = si.dwNumberOfProcessors; + } + + return val; +} Shouldn't the function just call _Thrd_hardware_concurrency instead of re-implementing it?
Thanks, Piotr
1508
Age (days ago)
1509
Last active (days ago)
1 comments
2 participants
participants (2)
-
Daniel Lehman -
Piotr Caban