blob: fd1f5d294a472cf67260ef7fa9636dbf8746b681 [file] [log] [blame]
.. title:: clang-tidy - darwin-avoid-spinlock
darwin-avoid-spinlock
=====================
Finds usages of ``OSSpinlock``, which is deprecated due to potential livelock
problems.
This check will detect following function invocations:
- ``OSSpinlockLock``
- ``OSSpinlockTry``
- ``OSSpinlockUnlock``
The corresponding information about the problem of ``OSSpinlock``: https://blog.postmates.com/why-spinlocks-are-bad-on-ios-b69fc5221058