flow-manager: reduce locks at startup

Effectively busy looping on a mutex to wait for time to be ready.
pull/7882/head
Victor Julien 2 years ago
parent 19e94e93fa
commit 0e39c92fcf

@ -787,6 +787,7 @@ static TmEcode FlowManager(ThreadVars *th_v, void *thread_data)
while (!TimeModeIsReady()) {
if (suricata_ctl_flags != 0)
return TM_ECODE_OK;
usleep(10);
}
uint32_t mp = MemcapsGetPressure() * 100;

Loading…
Cancel
Save