Skip to content

Commit

Permalink
flow-manager: reduce locks at startup
Browse files Browse the repository at this point in the history
Effectively busy looping on a mutex to wait for time to be ready.
  • Loading branch information
victorjulien committed Sep 20, 2022
1 parent 19e94e9 commit 0e39c92
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/flow-manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0e39c92

Please sign in to comment.