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