bolt/deps/llvm-18.1.8/clang-tools-extra/docs/clang-tidy/checks/darwin/avoid-spinlock.rst

16 lines
438 B
ReStructuredText
Raw Normal View History

2025-02-14 19:21:04 +01:00
.. 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