]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Thread: remove thread id
authorVictor Julien <victor@inliniac.net>
Mon, 1 Jul 2013 10:03:09 +0000 (12:03 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 1 Jul 2013 11:32:39 +0000 (13:32 +0200)
src/tm-threads.c

index 932d034dddba9d27a909b27b9aac38a70e0f65f0..254d4f9eaad200fcb185ed99ee13a5a44672a37c 100644 (file)
@@ -83,10 +83,6 @@ SCMutex tv_root_lock = PTHREAD_MUTEX_INITIALIZER;
  * thread encounters a failure.  Defaults to restart the failed thread */
 uint8_t tv_aof = THV_RESTART_THREAD;
 
-/** Counter for number of threadvar structs, so the number of threads we
- *  have. */
-int g_threadvars_cnt = 0;
-
 /**
  * \brief Check if a thread flag is set.
  *
@@ -1358,7 +1354,6 @@ ThreadVars *TmThreadCreate(char *name, char *inq_name, char *inqh_name,
     SC_ATOMIC_INIT(tv->flags);
     SCMutexInit(&tv->sc_perf_pctx.m, NULL);
 
-    tv->id = g_threadvars_cnt++;
     tv->name = name;
     /* default state for every newly created thread */
     TmThreadsSetFlag(tv, THV_PAUSE);