Page MenuHomeFreeBSD

syslogd: Merge loops
ClosedPublic

Authored by jfree on Aug 8 2023, 3:34 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 24, 5:38 PM
Unknown Object (File)
Sat, Jan 18, 9:25 PM
Unknown Object (File)
Fri, Jan 17, 7:26 PM
Unknown Object (File)
Thu, Jan 16, 4:02 PM
Unknown Object (File)
Mon, Jan 13, 10:39 AM
Unknown Object (File)
Nov 23 2024, 5:40 PM
Unknown Object (File)
Nov 7 2024, 5:54 AM
Unknown Object (File)
Nov 7 2024, 5:31 AM
Subscribers

Details

Summary
Merge the two loops that traverse the global filed queue. Both loops'
actions are not dependent on the other, so combining them is safe.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Aug 9 2023, 7:37 PM
This revision now requires review to proceed.Aug 10 2023, 11:11 PM
This revision is now accepted and ready to land.Aug 11 2023, 2:56 PM

so combining them is safe

I think it's not only safe, but more clear/obvious with your change assuming fileds have no (can have no) reference between them.

This revision was automatically updated to reflect the committed changes.