]> git.ipfire.org Git - thirdparty/suricata.git/commit
packetpool: signal waiter within lock 9727/head
authorVictor Julien <vjulien@oisf.net>
Thu, 14 Sep 2023 04:49:31 +0000 (06:49 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 1 Nov 2023 05:50:27 +0000 (06:50 +0100)
commitdc40a139acb3c66f5d34074c240a1f81dec3f002
tree9df2eaea32e7bd0b830b94f6eed9d3310668063b
parent087ca49e397a4643ff1e8762e4a02277737caef1
packetpool: signal waiter within lock

Needed for predictable scheduling. From pthread_cond_signal man page:

"The pthread_cond_signal() or pthread_cond_broadcast() functions may
 be called by a thread whether or not it currently owns the mutex that
 threads calling pthread_cond_wait() or pthread_cond_timedwait() have
 associated with the condition variable during their waits; however, if
 predictable scheduling behaviour is required, then that mutex is locked
 by the thread calling pthread_cond_signal() or pthread_cond_broadcast()."
src/tmqh-packetpool.c