Commit 18aa5318 authored by Dominik Charousset's avatar Dominik Charousset

Fix deadlock in ringbuffer::get_all

parent 8e28cda4
......@@ -93,7 +93,7 @@ public:
guard_type guard{mtx_};
rd_pos_ = (first + n) % Size;
// Wakeup a waiting producers if the queue became non-full.
if (first == next(last))
if (first == next(wr_pos_))
cv_full_.notify_all();
return i;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment