3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 01:25:31 +00:00

try with std::vector and ptr_vectors

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2019-06-04 04:10:55 -07:00 committed by Nuno Lopes
parent e4e60bff26
commit 9f3089b098
3 changed files with 34 additions and 42 deletions

View file

@ -1302,7 +1302,8 @@ namespace sat {
vector<std::thread> threads;
for (int i = 0; i < num_threads; ++i) {
threads.push_back(std::thread([&]() { worker_thread(i); }));
int id = i;
threads.push_back(std::thread([&]() { worker_thread(id); }));
}
for (int i = 0; i < num_threads; ++i) {
threads[i].join();