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:
Isaac Connor 2022-02-08 10:12:29 -05:00
parent 8c13aa7d3a
commit 2768975f96
1 changed files with 1 additions and 1 deletions

View File

@ -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)