]> git.ipfire.org Git - thirdparty/suricata.git/commit
threads: refactor TmThreadsSlotPktAcqLoop for user threads
authorJason Ish <jason.ish@oisf.net>
Fri, 23 Aug 2024 18:49:20 +0000 (12:49 -0600)
committerVictor Julien <victor@inliniac.net>
Tue, 1 Apr 2025 08:17:05 +0000 (10:17 +0200)
commit35d7d77ddb05bc3ba6df6e21e8fe7afe6d8aec1d
treeecc94142e04513e76469bfb3b8b63853c8e6ae78
parent04b29aa8d353c7b179a9d3f96ce9169018484750
threads: refactor TmThreadsSlotPktAcqLoop for user threads

Refactor TmThreadsSlotPktAcqLoop for user provided thread by breaking
out the init and finish code into their own functions.

For user provided threads, Suricata should not "drive" the thread, but
the setup and finish code is the same.

The finish function is exported so it can be called by the user
application when its receive loop or equivalent is done.

Also remove obsolete comment.

Ticket: #7240
src/runmode-lib.c
src/tm-threads.c
src/tm-threads.h