UniqueLock::UniqueLock

Acquire a lock on the given mutex, registering it for lock-order checking.

Synopsis

Declared in <sync.h>

UniqueLock(
    MutexType& mutexIn,
    char const* pszName,
    char const* pszFile,
    int nLine,
    bool fTry = false);

Parameters

NameDescription
mutexInMutex to lock.
pszNameName of the mutex.
pszFileSource file of the caller.
nLineSource line of the caller.
fTryWhether to attempt a non-blocking try-lock instead of blocking.