]> git.ipfire.org Git - thirdparty/suricata.git/commit
threads/mutex: Ensure mutex held before signaling
authorJeff Lucovsky <jlucovsky@oisf.net>
Sun, 4 Feb 2024 14:44:44 +0000 (09:44 -0500)
committerVictor Julien <victor@inliniac.net>
Wed, 14 Feb 2024 06:04:23 +0000 (07:04 +0100)
commit2a1a70b3089751b30f623871063ce155451d4cbc
tree6d9d785549051d5c98a49dc50ad99864c3b3c230
parente891ef3d4ed414987b485d88ac144e5d6fb981f0
threads/mutex: Ensure mutex held before signaling

Ensure that the mutex protecting the condition variable is held before
signaling it. This ensures that the thread(s) awaiting the signal are
notified.

Issue: 6569
src/tm-threads.c
src/tmqh-simple.c