Fix minor issue with usage of STL thread::hardware_concurrency()

This commit is contained in:
Eladash authored and Ivan committed 2021-01-29 18:23:29 +03:00
1 parent 11ba6e45ab
commit d3bc96a201
9 files changed
+24 -13

No files matched your search

+1 -1
View File
@@ -2518,7 +2518,7 @@ u64 thread_ctrl::get_affinity_mask(thread_class group)
{
detect_cpu_layout();
if (const auto thread_count = std::thread::hardware_concurrency())
if (const auto thread_count = utils::get_thread_count())
{
const u64 all_cores_mask = process_affinity_mask;