|
|
@ -478,6 +478,7 @@ static void *StatsWakeupThread(void *arg)
|
|
|
|
SCCtrlCondTimedwait(tv_local->ctrl_cond, tv_local->ctrl_mutex, &cond_time);
|
|
|
|
SCCtrlCondTimedwait(tv_local->ctrl_cond, tv_local->ctrl_mutex, &cond_time);
|
|
|
|
SCCtrlMutexUnlock(tv_local->ctrl_mutex);
|
|
|
|
SCCtrlMutexUnlock(tv_local->ctrl_mutex);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SCMutexLock(&tv_root_lock);
|
|
|
|
ThreadVars *tv = tv_root[TVT_PPT];
|
|
|
|
ThreadVars *tv = tv_root[TVT_PPT];
|
|
|
|
while (tv != NULL) {
|
|
|
|
while (tv != NULL) {
|
|
|
|
if (tv->perf_public_ctx.head == NULL) {
|
|
|
|
if (tv->perf_public_ctx.head == NULL) {
|
|
|
@ -511,6 +512,7 @@ static void *StatsWakeupThread(void *arg)
|
|
|
|
|
|
|
|
|
|
|
|
tv = tv->next;
|
|
|
|
tv = tv->next;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
SCMutexUnlock(&tv_root_lock);
|
|
|
|
|
|
|
|
|
|
|
|
if (TmThreadsCheckFlag(tv_local, THV_KILL)) {
|
|
|
|
if (TmThreadsCheckFlag(tv_local, THV_KILL)) {
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|