Skip to content

Commit

Permalink
Merge pull request #1221 from paullouisageneau/fix-notify-queue-limit
Browse files Browse the repository at this point in the history
Fix missing notify on queue limit preventing thread from waking up
  • Loading branch information
paullouisageneau committed Jul 2, 2024
2 parents c68ffe9 + ad22ddb commit ed9a328
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/impl/queue.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ template <typename T> optional<T> Queue<T>::pop() {
mAmount -= mAmountFunction(mQueue.front());
optional<T> element{std::move(mQueue.front())};
mQueue.pop();
mPushCondition.notify_one();
return element;
}

Expand Down

0 comments on commit ed9a328

Please sign in to comment.