Skip to content

Commit

Permalink
chore: update some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
DeveloperPaul123 committed Sep 18, 2024
1 parent aed1337 commit b5e9e99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/thread_pool/thread_pool.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ namespace dp {
} while (unassigned_tasks_.load(std::memory_order_acquire) > 0);

priority_queue_.rotate_to_front(id);
// check if all tasks are completed and release the barrier (binary
// semaphore)
// check if all tasks are completed and release the "barrier"
if (in_flight_tasks_.load(std::memory_order_acquire) == 0) {
// in theory, only one thread will set this
threads_complete_signal_.store(true, std::memory_order_release);
threads_complete_signal_.notify_one();
}
Expand Down

0 comments on commit b5e9e99

Please sign in to comment.