return;
}
+static void TmThreadDebugValidateNoMorePackets(void)
+{
+#ifdef DEBUG_VALIDATION
+ SCMutexLock(&tv_root_lock);
+ for (ThreadVars *tv = tv_root[TVT_PPT]; tv != NULL; tv = tv->next) {
+ if (ThreadStillHasPackets(tv)) {
+ SCMutexUnlock(&tv_root_lock);
+ TmThreadDumpThreads();
+ abort();
+ }
+ }
+ SCMutexUnlock(&tv_root_lock);
+#endif
+}
+
/**
* \brief Disable all threads having the specified TMs.
*/
/* first drain all packet threads of their packets */
TmThreadDrainPacketThreads();
+ TmThreadDebugValidateNoMorePackets();
gettimeofday(&start_ts, NULL);
again: