]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
threads: remove unused flag
authorVictor Julien <vjulien@oisf.net>
Wed, 30 Apr 2025 07:10:32 +0000 (09:10 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 26 Jun 2025 21:19:59 +0000 (23:19 +0200)
(cherry picked from commit b42eea67d5effe5bc6194877d23c9fdf060214eb)

src/threadvars.h
src/tm-threads.c

index ea448c0949864c0979867aa64e3790033f2b2196..3610e858adb5fbd51eaf177f8c057864b701a2ad 100644 (file)
@@ -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 */
index f8eb88a7b48566a7971a4e1e50b44e6190d80ace..74c2631551cc2176c269b3a506963bd3aaa6ef73 100644 (file)
@@ -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) {