Wrapper around std::unique_lock style lock for MutexType.
Synopsis
Declared in <sync.h>
template<typename MutexType>
class [[scoped_lockable]] UniqueLock
: public MutexType::unique_lock
Base Classes
Name |
Description |
|
Types
Name |
Description |
An RAII‐style reverse lock. Unlocks on construction and locks on destruction. |
Member Functions
Name |
Description |
|
Acquire a lock on the given mutex, registering it for lock‐order checking. |
|
Acquire a lock on the given mutex pointer, doing nothing if it is null. |
|
Release the lock if held and update lock‐order bookkeeping. |
Report whether this lock currently owns its mutex. |
Protected Member Functions
Name |
Description |
|
Construct an empty lock that owns no mutex (needed for reverse_lock). |
Friends
Name |
Description |
An RAII‐style reverse lock. Unlocks on construction and locks on destruction. |
Created with MrDocs