WPILibC++  2019.3.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
wpi::recursive_spinlock2 Class Reference

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 ()
 

Detailed Description

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.


The documentation for this class was generated from the following file: