fix deadlock caused by non-notification of multiqueue consumer side

master
Francisco 4 years ago committed by Francisco Paisana
parent 1670124926
commit a841b7580e

@ -157,7 +157,6 @@ class multiqueue_handler
// To ensure that the consumer noticed that the queue was empty before a push, we store the last // To ensure that the consumer noticed that the queue was empty before a push, we store the last
// try_pop() return in a member variable. // try_pop() return in a member variable.
// Doing this reduces the contention of multiple producers for the same condition variable // Doing this reduces the contention of multiple producers for the same condition variable
consumer_notify_needed = false;
lock.unlock(); lock.unlock();
parent->signal_pushed_data(); parent->signal_pushed_data();
} }

Loading…
Cancel
Save