xref: /llvm-project/clang-tools-extra/docs/clang-tidy/checks/darwin/avoid-spinlock.rst (revision 6e566bc5523f743bc34a7e26f050f1f2b4d699a8)
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