#include <PdfMutex.h>
Public Member Functions | |
PdfMutex () | |
void | Lock () |
bool | TryLock () |
void | UnLock () |
Static Public Member Functions | |
static bool | IsPoDoFoMultiThread () |
Uses pthreads on Unix and critical sections on Windows.
If PODOFO_MULTI_THREAD is not defined during the build, this class does nothing.
PoDoFo::Util::PdfMutex::PdfMutex | ( | ) |
Construct a new mutex
bool PoDoFo::Util::PdfMutex::IsPoDoFoMultiThread | ( | ) | [static] |
Query if this is a multithreaded PoDoFo build.
void PoDoFo::Util::PdfMutex::Lock | ( | ) |
Lock the mutex
bool PoDoFo::Util::PdfMutex::TryLock | ( | ) |
Try locking the mutex.
false if the mutex is already locked by some other thread
void PoDoFo::Util::PdfMutex::UnLock | ( | ) |
Unlock the mutex