Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix
  • Loading branch information
atksh committed Apr 29, 2022
commit 5e4290a818ea8051d4486f82a4a8a8c4bd7001c2
4 changes: 0 additions & 4 deletions cpp/parallel.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,5 @@ void parallel_for_each(const Iter first, const Iter last, const F &func)
}
std::for_each(threads.begin(), threads.end(), [&](std::thread &x)
{ x.join(); });
threads.clear();
std::vector<std::thread>().swap(threads);
iters.clear();
std::vector<Iter>().swap(iters);
}
}