scottmarchant
|
8fb4e7147d
|
chore: update Lock implementation with latest changes from swift-nio (#408)
Ports changes to `Lock` from swift-nio to swift-log.
### Motivation:
The copy-paste of `Lock` in swift-log should be updated with changes
from swift-nio.
### Modifications:
- Rolls back changed [made previously for
FreeBSD](https://github.com/apple/swift-log/pull/387/changes#diff-7b1bd45403dd1a7418287bd60682bf05ba2e4bf75dca1c0ca55a86d0477c9af5L73)
in favor of a consolidated implementation in swift-nio that will be in
place once https://github.com/apple/swift-nio/pull/3494 merges. @kkebo
Please confirm this works. After both of our PR's merge, swift-log and
swift-nio will have the same implementation as far as FreeBSD is
concerned.
- Brought the following recent changes from swift-nio over to swift-log:
- https://github.com/apple/swift-nio/pull/3482
- https://github.com/apple/swift-nio/pull/3480
- https://github.com/apple/swift-nio/pull/3483
- Removed stale `// SRWLOCK does not need to be free'd` comment.
### Result:
`Lock` implementation will have the same implementation as swift-nio
(assuming https://github.com/apple/swift-nio/pull/3494 merges).
|
2026-02-12 12:51:03 +00:00 |
|