[#UniqueLock-2constructor-0c] = xref:UniqueLock.adoc[UniqueLock]::UniqueLock :relfileprefix: ../ :mrdocs: Acquire a lock on the given mutex pointer, doing nothing if it is null. == Synopsis Declared in `<sync.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- UniqueLock( MutexType* pmutexIn, char const* pszName, char const* pszFile, int nLine, bool fTry = false); ---- == Parameters [cols="1,4"] |=== | Name| Description | *pmutexIn* | Mutex to lock, or null to construct an empty lock. | *pszName* | Name of the mutex. | *pszFile* | Source file of the caller. | *nLine* | Source line of the caller. | *fTry* | Whether to attempt a non‐blocking try‐lock instead of blocking. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#