]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
threading: clarify threadvars fields
authorVictor Julien <victor@inliniac.net>
Mon, 11 Nov 2019 15:49:55 +0000 (16:49 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 7 Feb 2020 14:43:10 +0000 (15:43 +0100)
src/threadvars.h

index 0b0a7acf0600a76a1a783249aad60754173ea90c..9a9d36ee24bdb0d677706f223a9dc0ae3f751cb3 100644 (file)
@@ -79,8 +79,11 @@ typedef struct ThreadVars_ {
     void (*InShutdownHandler)(struct ThreadVars_ *);
     void (*tmqh_out)(struct ThreadVars_ *, struct Packet_ *);
 
-    /** slot functions */
+    /** function pointer to the function that runs the packet pipeline for
+     *  this thread. It is passed directly to pthread_create(), hence the
+     *  void pointers in and out. */
     void *(*tm_func)(void *);
+    /** list of of TmSlot objects together forming the packet pipeline. */
     struct TmSlot_ *tm_slots;
     /** pointer to the flowworker in the pipeline. Used as starting point
      *  for injected packets. Can be NULL if the flowworker is not part