RSSwizzle icon indicating copy to clipboard operation
RSSwizzle copied to clipboard

Switch from deprecated OSSpinLock to os_unfair_lock

Open nabla-c0d3 opened this issue 8 years ago • 0 comments

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+.

nabla-c0d3 avatar Feb 17 '17 21:02 nabla-c0d3