A class for managing exclusive access to resources. More...
#include <xmltooling/util/Threads.h>
Public Member Functions | |
virtual int | lock ()=0 |
Locks the mutex for exclusive access. | |
virtual int | unlock ()=0 |
Unlocks the mutex for exclusive access. | |
Static Public Member Functions | |
static Mutex * | create () |
Creates a new mutex object. |
A class for managing exclusive access to resources.
static Mutex* xmltooling::Mutex::create | ( | ) | [static] |
Creates a new mutex object.
virtual int xmltooling::Mutex::lock | ( | ) | [pure virtual] |
Locks the mutex for exclusive access.
virtual int xmltooling::Mutex::unlock | ( | ) | [pure virtual] |
Unlocks the mutex for exclusive access.