Use OSAllocatedUnfairLock instead of os_unfair_lock_ on supported platforms #856
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #854
For now macOS builds will still use
os_unfair_lock_
until macOS 13 Ventura is released at which point this will need to be changed. It appears that you cannot refer to unreleased OS versions in@available
andif #available
statements 😞NOTE:
CI is running Xcode 13.2.1 so tests will not test usingLooks like GitHub Actions will default to using Xcode 14.0.1 in the next few hours: actions/runner-images#6225OSAllocatedUnfairLock
. CI should probably be updated to use Xcode 14.x. However, I ran tests locally with Xcode 14.0.1 and they passed.Checklist