mirror of https://github.com/OISF/suricata
stats: improve wait loops
Check bail condition before entering conditional wait. CID 1554236: (#1 of 1): Indefinite wait (BAD_CHECK_OF_WAIT_COND) dead_wait: A wait is performed without ensuring that the condition is not already satisfied while holding lock ThreadVars_.ctrl_mutex. This can cause unnecessary waiting if the notification happens before the lock is acquired. CID 1554238: (#1 of 1): Indefinite wait (BAD_CHECK_OF_WAIT_COND) dead_wait: A wait is performed without ensuring that the condition is not already satisfied while holding lock ThreadVars_.ctrl_mutex. This can cause unnecessary waiting if the notification happens before the lock is acquired.pull/14000/head
parent
ff96c52541
commit
f0121d8bc2
Loading…
Reference in New Issue