WPILibC++ 2023.4.3-108-ge5452e3
|
A recursive spinlock mutex. More...
#include <wpi/spinlock.h>
Public Member Functions | |
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 spins directly on the std::atomic of the thread id. It is generally faster on embedded ARM platforms such as the RoboRIO and Raspberry Pi, compared to recursive_spinlock1.
|
inline |
|
inline |
|
inline |