]> 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>
Wed, 30 Apr 2025 20:22:23 +0000 (22:22 +0200)
src/threadvars.h
src/tm-threads.c

index 6f339e9839d5f652ce17d7cb7dcd00631f03dbbf..b7b39ad49130dd0cf4e02ac3a4708828bb8a16bc 100644 (file)
@@ -33,7 +33,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 63222f99702195b2ee7bdaec3dbdcaa234c26db1..d8246cb12b21d31a47b20ca4b9e039ae74ff8de8 100644 (file)
@@ -962,7 +962,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) {