Skip to content

Fixed Logging #63

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix Consumer dispatch queue handler
- When the queue is full (more messages than threads) the queue full flag
  was set to True but never reset. Which lead to a blocking state were
  messages are not read anymore.
  • Loading branch information
sdorre committed Jul 21, 2021
commit ab614280b7979ee5e0a292410062a42285235bab
4 changes: 3 additions & 1 deletion sources/core/consumer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ void
consumer::dispatch_changed_handler(size_t size) {
if (size >= m_max_concurrency) {
dispatch_queue_full.store(true);
dispatch_queue_changed.notify_all();
} else {
dispatch_queue_full.store(false);
}
dispatch_queue_changed.notify_all();
}

void
Expand Down