Skip to content

Commit

Permalink
Fix missing notify on queue limit preventing thread from waking up
Browse files Browse the repository at this point in the history
  • Loading branch information
paullouisageneau committed Jul 2, 2024
1 parent c68ffe9 commit ad22ddb
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 ad22ddb

Please sign in to comment.