WPILibC++  2020.3.2-60-g3011ebe
wpi::spinlock Class Reference

A 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 spinlock mutex.

Wraps std::atomic_flag in a std::mutex compatible way.


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