Luna::LockGuard
The RAII wrapper that locks the specified lock upon construction, and unlocks the specified lock upon destruction.
template <typename _SpinLock>
class Luna::LockGuard
This can be used for both SpinLock and RecursiveSpinLock
Member functions
-
Constructs one lock guard and acquires the specified lock.
-
Releases the acquired spin lock manually.
-
LockGuard & operator=(_SpinLock &lock)
Replaces the acquired spin lock.