WPILibC++ 2024.3.2
|
A recursive spinlock mutex. More...
#include <wpi/spinlock.h>
Public Member Functions | |
recursive_spinlock1 () noexcept | |
LLVM_ATTRIBUTE_ALWAYS_INLINE bool | try_lock () |
LLVM_ATTRIBUTE_ALWAYS_INLINE void | lock () |
LLVM_ATTRIBUTE_ALWAYS_INLINE void | unlock () |
A recursive spinlock mutex.
This version uses std::atomic_flag for spin, then checks the thread id for recursion. It is generally faster on desktop platforms compared to recursive_spinlock2.
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |