[llvm] r237082 - [lib/Fuzzer] detach the pulse thread instad of joining it

Kostya Serebryany kcc at google.com
Mon May 11 18:43:21 PDT 2015


Author: kcc
Date: Mon May 11 20:43:20 2015
New Revision: 237082

URL: http://llvm.org/viewvc/llvm-project?rev=237082&view=rev
Log:
[lib/Fuzzer] detach the pulse thread instad of joining it

Modified:
    llvm/trunk/lib/Fuzzer/FuzzerDriver.cpp

Modified: llvm/trunk/lib/Fuzzer/FuzzerDriver.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/FuzzerDriver.cpp?rev=237082&r1=237081&r2=237082&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/FuzzerDriver.cpp (original)
+++ llvm/trunk/lib/Fuzzer/FuzzerDriver.cpp Mon May 11 20:43:20 2015
@@ -165,11 +165,11 @@ static int RunInMultipleProcesses(int ar
   }
   std::vector<std::thread> V;
   std::thread Pulse(PulseThread);
+  Pulse.detach();
   for (int i = 0; i < NumWorkers; i++)
     V.push_back(std::thread(WorkerThread, Cmd, &Counter, NumJobs, &HasErrors));
   for (auto &T : V)
     T.join();
-  Pulse.join();
   return HasErrors ? 1 : 0;
 }
 





More information about the llvm-commits mailing list