Open op183 opened 1 month ago
I tested simple cli utility which occasionally crash if compiled in release mode. It never crashed if compiled in debug mode :-). Please check https://developer.apple.com/documentation/os/osallocatedunfairlock
What is apple suggested?
If you’ve existing Swift code that uses os_unfair_lock, change it to use OSAllocatedUnfairLock to ensure correct locking behavior.
Hey, OSAllocatedUnfairLock is only available on iOS 16+, might take some time to add it for iOS 16+ only
OSAllocatedUnfairLock
I tested simple cli utility which occasionally crash if compiled in release mode. It never crashed if compiled in debug mode :-). Please check https://developer.apple.com/documentation/os/osallocatedunfairlock
What is apple suggested?
If you’ve existing Swift code that uses os_unfair_lock, change it to use OSAllocatedUnfairLock to ensure correct locking behavior.