Page MenuHomeFreeBSD

syslogd: Merge loops
ClosedPublic

Authored by jfree on Aug 8 2023, 3:34 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 26, 4:20 PM
Unknown Object (File)
Wed, Nov 26, 1:47 AM
Unknown Object (File)
Tue, Nov 25, 5:17 AM
Unknown Object (File)
Sun, Nov 23, 9:59 AM
Unknown Object (File)
Sat, Nov 22, 6:33 PM
Unknown Object (File)
Sat, Nov 22, 3:38 AM
Unknown Object (File)
Fri, Nov 21, 7:57 PM
Unknown Object (File)
Fri, Nov 21, 7:34 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.