[clang] Add tracking source deduction guide for the explicitly-written
[llvm-project.git] / clang-tools-extra / docs / clang-tidy / checks / darwin / avoid-spinlock.rst
blob96248924cd9af8c09f376a24cb03c537727bd44d
1 .. title:: clang-tidy - darwin-avoid-spinlock
3 darwin-avoid-spinlock
4 =====================
6 Finds usages of ``OSSpinlock``, which is deprecated due to potential livelock
7 problems.
9 This check will detect following function invocations:
11 - ``OSSpinlockLock``
12 - ``OSSpinlockTry``
13 - ``OSSpinlockUnlock``
15 The corresponding information about the problem of ``OSSpinlock``: https://blog.postmates.com/why-spinlocks-are-bad-on-ios-b69fc5221058