From: Victor Julien Date: Mon, 19 Sep 2022 18:05:31 +0000 (+0200) Subject: flow-manager: reduce locks at startup X-Git-Tag: suricata-7.0.0-beta1~228 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e39c92fcf8142c0329160147b3cf09c7d3bbf8e;p=thirdparty%2Fsuricata.git flow-manager: reduce locks at startup Effectively busy looping on a mutex to wait for time to be ready. --- diff --git a/src/flow-manager.c b/src/flow-manager.c index 03d201f7f9..23ab9e801a 100644 --- a/src/flow-manager.c +++ b/src/flow-manager.c @@ -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;