xmltooling  3.0.1
xmltooling::Mutex Class Referenceabstract

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. More...
 
virtual int unlock ()=0
 Unlocks the mutex for exclusive access. More...
 

Static Public Member Functions

static Mutexcreate ()
 Creates a new mutex object. More...
 

Detailed Description

A class for managing exclusive access to resources.

Member Function Documentation

static Mutex* xmltooling::Mutex::create ( )
static

Creates a new mutex object.

Returns
the new mutex
virtual int xmltooling::Mutex::lock ( )
pure virtual

Locks the mutex for exclusive access.

Returns
0 for success, non-zero for failure
virtual int xmltooling::Mutex::unlock ( )
pure virtual

Unlocks the mutex for exclusive access.

Returns
0 for success, non-zero for failure

The documentation for this class was generated from the following file: