From: Victor Julien Date: Wed, 30 Apr 2025 07:10:32 +0000 (+0200) Subject: threads: remove unused flag X-Git-Tag: suricata-7.0.11~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75b32ac418ca63b8c65e9bd31e68899f78bbe551;p=thirdparty%2Fsuricata.git threads: remove unused flag (cherry picked from commit b42eea67d5effe5bc6194877d23c9fdf060214eb) --- diff --git a/src/threadvars.h b/src/threadvars.h index ea448c0949..3610e858ad 100644 --- a/src/threadvars.h +++ b/src/threadvars.h @@ -32,7 +32,7 @@ struct TmSlot_; /** Thread flags set and read by threads to control the threads */ -#define THV_USE BIT_U32(0) /** thread is in use */ +// bit 0 vacant #define THV_INIT_DONE BIT_U32(1) /** thread initialization done */ #define THV_PAUSE BIT_U32(2) /** signal thread to pause itself */ #define THV_PAUSED BIT_U32(3) /** the thread is paused atm */ diff --git a/src/tm-threads.c b/src/tm-threads.c index f8eb88a7b4..74c2631551 100644 --- a/src/tm-threads.c +++ b/src/tm-threads.c @@ -928,7 +928,6 @@ ThreadVars *TmThreadCreate(const char *name, const char *inq_name, const char *i /* default state for every newly created thread */ TmThreadsSetFlag(tv, THV_PAUSE); - TmThreadsSetFlag(tv, THV_USE); /* set the incoming queue */ if (inq_name != NULL && strcmp(inq_name, "packetpool") != 0) {