Only notify one. Anyone waiting is waiting on a lock and only 1 process can get that lock, so only one should try.
This commit is contained in:
parent
8c13aa7d3a
commit
2768975f96
|
@ -161,7 +161,7 @@ bool PacketQueue::queuePacket(std::shared_ptr<ZMPacket> add_packet) {
|
||||||
} // end lock scope
|
} // end lock scope
|
||||||
// We signal on every packet because someday we may analyze sound
|
// We signal on every packet because someday we may analyze sound
|
||||||
Debug(4, "packetqueue queuepacket, unlocked signalling");
|
Debug(4, "packetqueue queuepacket, unlocked signalling");
|
||||||
condition.notify_all();
|
condition.notify_one();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
} // end bool PacketQueue::queuePacket(ZMPacket* zm_packet)
|
} // end bool PacketQueue::queuePacket(ZMPacket* zm_packet)
|
||||||
|
|
Loading…
Reference in New Issue