[PATCH] D27234: [libFuzzer] Diff 4 - Split FuzzerUtil implementation for Posix and Windows.

Zachary Turner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 30 16:03:31 PST 2016


zturner added inline comments.


================
Comment at: lib/Fuzzer/FuzzerUtil.cpp:199
+int NumberOfCpuCores() {
+  unsigned N = std::thread::hardware_concurrency();
+  if (!N) {
----------------
Kostya, can you confirm that the call to `std::thread::hardware_concurrency()` here is ok?  The call to `sleep` earlier has a comment explicitly stating that stl can't be used.  Is the same thing going to be true here?


Repository:
  rL LLVM

https://reviews.llvm.org/D27234





More information about the llvm-commits mailing list