Skip to content

Switch from deprecated OSSpinLock to os_unfair_lock#8

Open
nabla-c0d3 wants to merge 8 commits into
rabovik:masterfrom
datatheorem:master
Open

Switch from deprecated OSSpinLock to os_unfair_lock#8
nabla-c0d3 wants to merge 8 commits into
rabovik:masterfrom
datatheorem:master

Conversation

@nabla-c0d3

Copy link
Copy Markdown
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