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()) { while (!TimeModeIsReady()) {
if (suricata_ctl_flags != 0) if (suricata_ctl_flags != 0)
return TM_ECODE_OK; return TM_ECODE_OK;
usleep(10);
} }
uint32_t mp = MemcapsGetPressure() * 100; uint32_t mp = MemcapsGetPressure() * 100;

Loading…
Cancel
Save