PoDoFo::Util::PdfMutex Class Reference

#include <PdfMutex.h>

List of all members.

Public Member Functions

 PdfMutex ()
void Lock ()
bool TryLock ()
void UnLock ()

Static Public Member Functions

static bool IsPoDoFoMultiThread ()


Detailed Description

A plattform independent mutex.

Uses pthreads on Unix and critical sections on Windows.

If PODOFO_MULTI_THREAD is not defined during the build, this class does nothing.


Constructor & Destructor Documentation

PoDoFo::Util::PdfMutex::PdfMutex (  ) 

Construct a new mutex


Member Function Documentation

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.

Returns:
true if the mutex was locked

false if the mutex is already locked by some other thread

void PoDoFo::Util::PdfMutex::UnLock (  ) 

Unlock the mutex


Generated on Sat May 2 02:50:32 2009 for PoDoFo by  doxygen 1.5.8