RAII wrapper that acquires the lock on construction and releases on destruction.
More...
#include <SpinLock.h>
RAII wrapper that acquires the lock on construction and releases on destruction.
Definition at line 135 of file SpinLock.h.
◆ ScopedLock() [1/2]
| dspark::SpinLock::ScopedLock::ScopedLock |
( |
SpinLock & |
spinLock | ) |
|
|
inlineexplicitnoexcept |
Constructs the guard and blocks until the lock is acquired.
- Parameters
-
Definition at line 142 of file SpinLock.h.
◆ ~ScopedLock()
| dspark::SpinLock::ScopedLock::~ScopedLock |
( |
| ) |
|
|
inlinenoexcept |
Destructs the guard and releases the lock.
Definition at line 145 of file SpinLock.h.
◆ ScopedLock() [2/2]
| dspark::SpinLock::ScopedLock::ScopedLock |
( |
const ScopedLock & |
| ) |
|
|
delete |
◆ operator=()
The documentation for this class was generated from the following file: