]> 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>
Thu, 15 Feb 2024 14:34:05 +0000 (15:34 +0100)
commitcf31c431f2c1b5b3c8aa1b6df5901a9a10773a0d
tree629690106c8a914885058e1fcb118713c6df4261
parent912b1bdca60daec3b101964da98f2855ee4421e7
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
(cherry picked from commit 2a1a70b3089751b30f623871063ce155451d4cbc)
src/tm-threads.c
src/tmqh-simple.c