From f1ee176111b72e8d43c2dc3801093bc582b6ac2a Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Mon, 11 Nov 2019 16:49:55 +0100 Subject: [PATCH] threading: clarify threadvars fields --- src/threadvars.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/threadvars.h b/src/threadvars.h index 0b0a7acf06..9a9d36ee24 100644 --- a/src/threadvars.h +++ b/src/threadvars.h @@ -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