llvm.org GIT mirror llvm / 772410a
[lib/Fuzzer] detach the pulse thread instad of joining it git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237082 91177308-0d34-0410-b5e6-96231b3b80d8 Kostya Serebryany 5 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
164164 }
165165 std::vector V;
166166 std::thread Pulse(PulseThread);
167 Pulse.detach();
167168 for (int i = 0; i < NumWorkers; i++)
168169 V.push_back(std::thread(WorkerThread, Cmd, &Counter, NumJobs, &HasErrors));
169170 for (auto &T : V)
170171 T.join();
171 Pulse.join();
172172 return HasErrors ? 1 : 0;
173173 }
174174