#include <ScopedSpinLock.h>
Definition at line 31 of file ScopedSpinLock.h.
icl_core::thread::ScopedSpinLock::ScopedSpinLock |
( |
SpinLock & |
spinlock | ) |
|
|
inlineexplicit |
Locks the spinlock.
- Parameters
-
spinlock | The spinlock to use. |
Definition at line 37 of file ScopedSpinLock.h.
icl_core::thread::ScopedSpinLock::~ScopedSpinLock |
( |
| ) |
|
|
inline |
bool icl_core::thread::ScopedSpinLock::isLocked |
( |
| ) |
const |
|
inline |
Check if the spinlock has been successfully locked (always true since this class guarantees that the lock is held).
Definition at line 52 of file ScopedSpinLock.h.
icl_core::thread::ScopedSpinLock::operator bool |
( |
| ) |
const |
|
inline |
Implicit conversion to bool (always true).
Definition at line 55 of file ScopedSpinLock.h.
SpinLock& icl_core::thread::ScopedSpinLock::m_spinlock |
|
private |
The documentation for this class was generated from the following file: