[PATCH 2/2] msvcp140_atomic_wait: Implement __std_parallel_algorithms_hw_threads.

Piotr Caban piotr.caban at gmail.com
Tue Jan 25 07:02:07 CST 2022


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



More information about the wine-devel mailing list