Skip to content

Commit

Permalink
fix: small merge issue
Browse files Browse the repository at this point in the history
  • Loading branch information
DeveloperPaul123 committed Apr 25, 2024
1 parent 81d8484 commit 8fe6151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/thread_pool/thread_pool.h
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ namespace dp {
[[nodiscard]] auto size() const { return threads_.size(); }

void wait_for_tasks() {
if (pending_tasks_.load(std::memory_order_acquire) > 0) {
if (completed_tasks_.load(std::memory_order_acquire) > 0) {
// wait for all tasks to finish
threads_done_.acquire();
}
Expand Down

0 comments on commit 8fe6151

Please sign in to comment.