]> git.ipfire.org Git - thirdparty/suricata.git/commit
threads: move wait for unpause outside of loop 11948/head
authorJason Ish <jason.ish@oisf.net>
Thu, 10 Oct 2024 22:56:30 +0000 (16:56 -0600)
committerVictor Julien <victor@inliniac.net>
Sat, 12 Oct 2024 09:03:39 +0000 (11:03 +0200)
commit15c4eb3d16b114610edf31f86f68ca2a093f81cf
treea9140bd935a27d5171a9ff800a477d40e6a654c2
parent7492fb6a91b396533342fca6c98128f2f57fcfc3
threads: move wait for unpause outside of loop

Threads are only set to paused upon initialization and never again, we
should only have to wait once, so move the wait before any loop that
was waiting before.

Additionally, if the thread was killed while waiting to be unpaused,
don't enter the loop.
src/counters.c
src/detect-engine-loader.c
src/flow-bypass.c
src/flow-manager.c
src/tm-threads.c
src/tm-threads.h