PoDoFo  0.9.1
Public Member Functions
PoDoFo::Util::PdfMutexWrapper Class Reference

#include <PdfMutexWrapper.h>

List of all members.

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

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

Lock a mutex.

Parameters:
rMutexthe mutex to be locked.

Unlocks the mutex on destruction