blakeblackshear.frigate/frigate
Sean Vig 57864f2be6 Wait on stop event when possible
Generally eliminate the `while True` loops while waiting for a stop
event and prefer to condition the loops on if the stop event is set,
blocking on that where it makes sense.  This generally comes in 3
flavors.  First and simplest, when there is a sleep and the stop event
is the only thing the loop blocks on, instead do a check using
`stop_event.wait(timeout)` to instead block on the stop event for the
designated amount of time. Second, when there is a different event that
is blocking in the loop, condition the loop on `stop_event.is_set()`
rather than breaking when it is set. Finally, when there is a separate
internal condition that requires a counter, have the loop iterate over
the counter and use `if stop_event.wait(timeout)` internal to the loop.
2021-05-22 07:54:16 -05:00
..
test formatting cleanup 2021-02-25 07:01:57 -06:00
__init__.py app container and config schema 2021-01-26 21:40:33 -06:00
__main__.py formatting cleanup 2021-02-25 07:01:57 -06:00
app.py Add support for NGINX VOD Module 2021-05-22 07:48:44 -05:00
config.py remove tmpfs_cache_size option 2021-02-25 07:01:59 -06:00
const.py formatting cleanup 2021-02-25 07:01:57 -06:00
edgetpu.py Wait on stop event when possible 2021-05-22 07:54:16 -05:00
events.py Wait on stop event when possible 2021-05-22 07:54:16 -05:00
http.py Add support for NGINX VOD Module 2021-05-22 07:48:44 -05:00
log.py Add support for NGINX VOD Module 2021-05-22 07:48:44 -05:00
models.py add database migrations 2021-01-26 21:40:33 -06:00
motion.py formatting cleanup 2021-02-25 07:01:57 -06:00
mqtt.py formatting cleanup 2021-02-25 07:01:57 -06:00
object_processing.py Wait on stop event when possible 2021-05-22 07:54:16 -05:00
objects.py formatting cleanup 2021-02-25 07:01:57 -06:00
process_clip.py Improve ffprobe executions 2021-05-22 07:48:00 -05:00
record.py Wait on stop event when possible 2021-05-22 07:54:16 -05:00
stats.py Wait on stop event when possible 2021-05-22 07:54:16 -05:00
util.py formatting cleanup 2021-02-25 07:01:57 -06:00
video.py Wait on stop event when possible 2021-05-22 07:54:16 -05:00
watchdog.py Wait on stop event when possible 2021-05-22 07:54:16 -05:00
zeroconf.py formatting cleanup 2021-02-25 07:01:57 -06:00