#include <spinlock.h>
|
std::atomic_flag | flag_ = ATOMIC_FLAG_INIT |
|
Definition at line 22 of file spinlock.h.
◆ Spinlock() [1/2]
bdm::Spinlock::Spinlock |
( |
| ) |
|
|
default |
◆ Spinlock() [2/2]
bdm::Spinlock::Spinlock |
( |
const Spinlock & |
other | ) |
|
|
inline |
Used to store mutexes in a std::vector. Always creates a new mutex (even for the copy constructor)
Definition at line 28 of file spinlock.h.
◆ lock()
void bdm::Spinlock::lock |
( |
| ) |
|
|
inline |
◆ unlock()
void bdm::Spinlock::unlock |
( |
| ) |
|
|
inline |
◆ flag_
std::atomic_flag bdm::Spinlock::flag_ = ATOMIC_FLAG_INIT |
|
private |
The documentation for this class was generated from the following file: