nidas  v1.2-1520
Public Member Functions | Private Member Functions | Private Attributes | List of all members
nidas::util::AutoWrLock Class Reference

Autolock for acquiring/releasing a write lock on a RWLock. More...

#include <ThreadSupport.h>

Public Member Functions

 AutoWrLock (RWLock &rwlock) throw (Exception)
 Construct the guard object and lock() the lock. More...
 
 ~AutoWrLock ()
 On destruction, unlock the lock. More...
 

Private Member Functions

 AutoWrLock (const Autolock &)
 
AutoWrLockoperator= (const Autolock &)
 

Private Attributes

RWLock_rwlock
 

Detailed Description

Autolock for acquiring/releasing a write lock on a RWLock.

Constructor & Destructor Documentation

nidas::util::AutoWrLock::AutoWrLock ( RWLock rwlock)
throw (Exception
)
inline

Construct the guard object and lock() the lock.

nidas::util::AutoWrLock::~AutoWrLock ( )
inline

On destruction, unlock the lock.

nidas::util::AutoWrLock::AutoWrLock ( const Autolock )
private

Member Function Documentation

AutoWrLock& nidas::util::AutoWrLock::operator= ( const Autolock )
private

Member Data Documentation

RWLock& nidas::util::AutoWrLock::_rwlock
private

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