PoDoFo 0.9.6
Public Member Functions | List of all members
PoDoFo::Util::PdfMutexWrapper Class Reference

#include <PdfMutexWrapper.h>

Public Member Functions

PODOFO_NOTHROW PdfMutexWrapper (PdfMutex &rMutex)
 
 ~PdfMutexWrapper ()
 

Detailed Description

A wrapper around PdfMutex. The mutex is locked in the constructor and unlocked in the destructor.

In debug builds all exceptions thrown by the mutex implementation are caught and logged before being rethrown.

Note that PdfMutexWrapper is not part of PoDoFo's public API.

Constructor & Destructor Documentation

◆ PdfMutexWrapper()

PoDoFo::Util::PdfMutexWrapper::PdfMutexWrapper ( PdfMutex &  rMutex)
inline

Lock a mutex.

Parameters
rMutexthe mutex to be locked.

◆ ~PdfMutexWrapper()

PoDoFo::Util::PdfMutexWrapper::~PdfMutexWrapper ( )
inline

Unlocks the mutex on destruction