flow-manager: avoid doubly signaling threads

Don't try to wake up the threads we just flagged and validated that
they changed their state.
pull/4531/head
Victor Julien 5 years ago
parent 539c1a275f
commit 6fd35fb786

@ -190,10 +190,6 @@ again:
}
SCMutexUnlock(&tv_root_lock);
/* wake up threads, another try */
for (u = 0; u < flowmgr_number; u++)
SCCtrlCondSignal(&flow_manager_ctrl_cond);
/* reset count, so we can kill and respawn (unix socket) */
SC_ATOMIC_SET(flowmgr_cnt, 0);
return;
@ -1155,10 +1151,6 @@ again:
}
SCMutexUnlock(&tv_root_lock);
/* wake up threads, another try */
for (u = 0; u < flowrec_number; u++)
SCCtrlCondSignal(&flow_recycler_ctrl_cond);
/* reset count, so we can kill and respawn (unix socket) */
SC_ATOMIC_SET(flowrec_cnt, 0);
return;

Loading…
Cancel
Save