Audacity 3.2.0
|
Intended for locking of resources that are only lightly contended and locked for very short times, can be used with std::lock_guard. More...
#include <spinlock.h>
Public Member Functions | |
~spinlock () | |
void | lock () |
void | unlock () |
Private Attributes | |
std::atomic_flag | flag = ATOMIC_FLAG_INIT |
Intended for locking of resources that are only lightly contended and locked for very short times, can be used with std::lock_guard.
Definition at line 21 of file spinlock.h.
|
inline |
Definition at line 25 of file spinlock.h.
|
inline |
Definition at line 27 of file spinlock.h.
References flag.
|
inline |
Definition at line 33 of file spinlock.h.
References flag.
|
private |
Definition at line 23 of file spinlock.h.