Skip to content

Commit

Permalink
Remove unnecessary lambda capture
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniocoratelli authored Jan 20, 2022
1 parent 0d4bcec commit 42933a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/include/aco/thread_pool.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ thread_pool<NumRounds>::thread_pool(size_t n_threads):

template<size_t NumRounds>
thread_pool<NumRounds>::~thread_pool() noexcept {
auto call_done = [this](queue& q) { q.done(); };
auto call_join = [this](std::thread& t) { t.join(); };
auto call_done = [](queue& q) { q.done(); };
auto call_join = [](std::thread& t) { t.join(); };
std::for_each(begin(queues_), end(queues_), call_done);
std::for_each(begin(threads_), end(threads_), call_join);
}
Expand Down

0 comments on commit 42933a9

Please sign in to comment.