Getting following warning in Xcode 8 / Swift 3:
warning: 'OSAtomicCompareAndSwap32Barrier' was deprecated in OS X 10.12:
Use atomic_compare_exchange_strong() from <stdatomic.h> instead
Attempt to use function atomic_compare_exchange_strong
in Swift code leads compiler error:
error: use of unresolved identifier 'atomic_compare_exchange_strong'
Importing Darwin
or CoreFoundation
modules does not solve problem.
What module should I import in order to get symbol for atomic_compare_exchange_strong
?
Thank you!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…