From 75b32ac418ca63b8c65e9bd31e68899f78bbe551 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 30 Apr 2025 09:10:32 +0200 Subject: [PATCH] threads: remove unused flag (cherry picked from commit b42eea67d5effe5bc6194877d23c9fdf060214eb) --- src/threadvars.h | 2 +- src/tm-threads.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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) { -- 2.47.2