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

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

#include <ThreadSupport.h>

Public Member Functions

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

Private Member Functions

 AutoRdLock (const Autolock &)
 
AutoRdLockoperator= (const Autolock &)
 

Private Attributes

RWLock_rwlock
 

Detailed Description

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

Constructor & Destructor Documentation

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

Construct the guard object and lock() the lock.

nidas::util::AutoRdLock::~AutoRdLock ( )
inline

On destruction, unlock the lock.

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

Member Function Documentation

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

Member Data Documentation

RWLock& nidas::util::AutoRdLock::_rwlock
private

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