[PATCH] D38481: Use sched_getaffinity instead of std::thread::hardware_concurrency when available

Shoaib Meenai via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 2 16:05:49 PDT 2017


smeenai added inline comments.


================
Comment at: include/llvm/Support/Threading.h:135
+  /// Get the number of threads that the current program can execute
+  /// concurrently. On some systems std::thread::hardware_concurrency() nreturns
+  /// the total number of cores, without taking affinity into consideration.
----------------
Typo: nreturns


https://reviews.llvm.org/D38481





More information about the llvm-commits mailing list