Files
zoneminder/src
Isaac Connor 0882a3ad1e fix: resolve Event::Run thread hang preventing zmc clean shutdown
Event::Run could block indefinitely in PacketQueue methods during normal
event closing (closeEvent from analysis thread), because their wait
predicates only check deleting/zm_terminate, not Event's terminate_ flag.

Three changes fix this:
- get_packet_no_wait: return immediately when iterator at end instead of
  blocking on condition variable (makes it truly non-blocking)
- Event::Run: use increment_it(wait=false) since deletePacket can advance
  the iterator to end() during AddPacket_ without the queue lock
- Event::Stop: call packetqueue->notify_all() to wake timed waits so
  Run() checks terminate_ promptly

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 23:00:59 -05:00
..
2013-03-17 00:45:21 +01:00
2024-10-26 14:29:40 -04:00
2024-03-26 13:43:58 -05:00
2024-10-26 14:29:40 -04:00
2025-07-05 08:09:09 -04:00
2021-05-30 21:41:58 +02:00
2026-01-29 18:50:42 -05:00
2025-09-18 14:48:52 -04:00
2024-10-29 13:30:29 -04:00
2025-02-26 21:04:32 +11:00
2025-02-26 21:04:32 +11:00
2025-09-18 10:07:50 -04:00
2026-01-31 12:43:03 -05:00
2023-01-18 16:01:42 -05:00
2025-07-05 08:09:09 -04:00
2025-07-05 08:09:09 -04:00
2025-08-05 14:13:39 -04:00
2026-01-05 16:36:36 -05:00
2026-01-05 16:36:36 -05:00