mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-22 09:29:31 +00:00
[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
This commit is contained in:
parent
0552d51c45
commit
772410aef6
@ -165,11 +165,11 @@ static int RunInMultipleProcesses(int argc, char **argv, int NumWorkers,
|
|||||||
}
|
}
|
||||||
std::vector<std::thread> V;
|
std::vector<std::thread> V;
|
||||||
std::thread Pulse(PulseThread);
|
std::thread Pulse(PulseThread);
|
||||||
|
Pulse.detach();
|
||||||
for (int i = 0; i < NumWorkers; i++)
|
for (int i = 0; i < NumWorkers; i++)
|
||||||
V.push_back(std::thread(WorkerThread, Cmd, &Counter, NumJobs, &HasErrors));
|
V.push_back(std::thread(WorkerThread, Cmd, &Counter, NumJobs, &HasErrors));
|
||||||
for (auto &T : V)
|
for (auto &T : V)
|
||||||
T.join();
|
T.join();
|
||||||
Pulse.join();
|
|
||||||
return HasErrors ? 1 : 0;
|
return HasErrors ? 1 : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user