|
FDL Core Library
ASC Framing Decision List — C/C++ Reference Implementation
|
RAII lock helper for per-document synchronization. More...
#include <fdl_doc.h>
Public Member Functions | |
| doc_lock (const fdl_doc *doc) | |
| Acquire the document's mutex. | |
Data Fields | |
| std::unique_lock< std::mutex > | lock_ |
| Held lock (empty if doc was null). | |
RAII lock helper for per-document synchronization.
Acquires the document's mutex on construction, releases on destruction. Safe with const handles because the mutex is mutable.
|
inlineexplicit |
Acquire the document's mutex.
| doc | Document to lock (may be NULL, in which case no lock is acquired). |