Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from deprecated OSSpinLock to os_unfair_lock #8

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

nabla-c0d3
Copy link
Contributor

When building with the iOS 10 SDK, OSSpinLock() triggers warnings in Xcode as it has been deprecated.

This pull request switches to Apple's replacement, os_unfair_lock ( https://developer.apple.com/reference/os/1646466-os_unfair_lock_lock ) when the base SDK is iOS 10+ or macOS 10.12+.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants