WPILibC++
2019.1.1-beta-4-6-g6593f43
|
A recursive spinlock mutex. More...
#include <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.