FDL Core Library
ASC Framing Decision List — C/C++ Reference Implementation
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
doc_lock Struct Reference

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).
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ doc_lock()

doc_lock::doc_lock ( const fdl_doc *  doc)
inlineexplicit

Acquire the document's mutex.

Parameters
docDocument to lock (may be NULL, in which case no lock is acquired).

The documentation for this struct was generated from the following file: