From: Victor Julien Date: Mon, 1 Jul 2013 10:03:09 +0000 (+0200) Subject: Thread: remove thread id X-Git-Tag: suricata-2.0beta1~52 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1373a20e8a52875d904649cd22d50a21db1c600e;p=thirdparty%2Fsuricata.git Thread: remove thread id --- diff --git a/src/tm-threads.c b/src/tm-threads.c index 932d034ddd..254d4f9eaa 100644 --- a/src/tm-threads.c +++ b/src/tm-threads.c @@ -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);