introduce packetqueue::unlock to unlock packets and notify anyone waiting. Also check for iterators pointing to packets when not keeping keyframes. Loop with waiting when we can't lock a packet

pull/3208/head
Isaac Connor 2021-04-01 11:52:28 -04:00
parent f52ead7cda
commit 6459cfb4bc
1 changed files with 1 additions and 0 deletions

View File

@ -84,6 +84,7 @@ class PacketQueue {
unsigned int pre_event_count
);
bool is_there_an_iterator_pointing_to_packet(ZMPacket *zm_packet);
void unlock(ZMLockedPacket *lp);
};
#endif /* ZM_PACKETQUEUE_H */