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

Rafael Ávila de Espíndola via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 2 18:03:25 PDT 2017


rafael updated this revision to Diff 117458.
rafael added a comment.

Rename the missing places. Guard against std::thread::hardware_concurrency returning 0.


https://reviews.llvm.org/D38481

Files:
  cmake/config-ix.cmake
  include/llvm/Config/config.h.cmake
  include/llvm/Support/ThreadPool.h
  include/llvm/Support/Threading.h
  lib/Fuzzer/FuzzerUtil.cpp
  lib/Support/Parallel.cpp
  lib/Support/ThreadPool.cpp
  lib/Support/Threading.cpp
  tools/llvm-profdata/llvm-profdata.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38481.117458.patch
Type: text/x-patch
Size: 6199 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171003/0391f3e2/attachment.bin>


More information about the llvm-commits mailing list