class ScopedLock

template<bool LOCK>

Scoped lock that provides RAII-style locking and accepts both a normal mutex and a locking policy as input.

Public

Constructors

ScopedLock

ScopedLock(LockingPolicy<false> &policy)

ScopedLock

ScopedLock(LockingPolicy<true> &policy)

ScopedLock

ScopedLock(Mutex &mutex)

Private

Fields

mLockGuard

std::lock_guard<Mutex> mLockGuard