xmltooling::SharedLock Class Reference

RAII wrapper for a shared lock. More...

#include <xmltooling/util/Threads.h>

Collaboration diagram for xmltooling::SharedLock:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SharedLock (RWLock *lock, bool lockit=true)
 Locks and wraps the designated shared lock.
 ~SharedLock ()
 Unlocks the wrapped shared lock.

Detailed Description

RAII wrapper for a shared lock.


Constructor & Destructor Documentation

xmltooling::SharedLock::SharedLock ( RWLock lock,
bool  lockit = true 
) [inline]

Locks and wraps the designated shared lock.

Parameters:
lock lock to acquire
lockit true if the lock should be acquired here, false if already acquired

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

Generated on 15 Jun 2012 for xmltooling by  doxygen 1.6.1