1.. title:: clang-tidy - darwin-avoid-spinlock 2 3darwin-avoid-spinlock 4===================== 5 6Finds usages of ``OSSpinlock``, which is deprecated due to potential livelock 7problems. 8 9This check will detect following function invocations: 10 11- ``OSSpinlockLock`` 12- ``OSSpinlockTry`` 13- ``OSSpinlockUnlock`` 14 15The corresponding information about the problem of ``OSSpinlock``: https://blog.postmates.com/why-spinlocks-are-bad-on-ios-b69fc5221058 16