xmltooling  1.6.4
xmltooling::RWLock Class Referenceabstract

A class for managing shared and exclusive access to resources. More...

#include <xmltooling/util/Threads.h>

Public Member Functions

virtual int rdlock ()=0
 Obtains a shared lock. More...
 
virtual int wrlock ()=0
 Obtains an exclusive lock. More...
 
virtual int unlock ()=0
 Unlocks the lock. More...
 

Static Public Member Functions

static RWLockcreate ()
 Creates a new read/write lock. More...
 

Detailed Description

A class for managing shared and exclusive access to resources.

Member Function Documentation

◆ create()

static RWLock* xmltooling::RWLock::create ( )
static

Creates a new read/write lock.

Returns
the new lock

◆ rdlock()

virtual int xmltooling::RWLock::rdlock ( )
pure virtual

Obtains a shared lock.

Returns
0 for success, non-zero for failure

◆ unlock()

virtual int xmltooling::RWLock::unlock ( )
pure virtual

Unlocks the lock.

Returns
0 for success, non-zero for failure

◆ wrlock()

virtual int xmltooling::RWLock::wrlock ( )
pure virtual

Obtains an exclusive lock.

Returns
0 for success, non-zero for failure

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