VRUT::ReadLocker Class Reference

Acquire lock for reading and release lock implicitly in scope. More...

#include <rwlock.h>

List of all members.

Public Member Functions

 ReadLocker (const ReadWriteMutex &rwLock)
 Class constructor.
 ~ReadLocker ()
 Class destructor.

Private Attributes

const ReadWriteMutexm_rwLock
 ReadWriteMutex to be locked/unlocked


Detailed Description

Acquire lock for reading and release lock implicitly in scope.

Definition at line 155 of file rwlock.h.


Constructor & Destructor Documentation

VRUT::ReadLocker::ReadLocker ( const ReadWriteMutex rwLock  )  [inline]

Class constructor.

Definition at line 159 of file rwlock.h.

00159                                                         : m_rwLock(rwLock)
00160               {
00161                      m_rwLock.ReadLock();
00162               }

VRUT::ReadLocker::~ReadLocker (  )  [inline]

Class destructor.

Definition at line 165 of file rwlock.h.

00166               {
00167                      m_rwLock.ReadUnlock();
00168               }


Member Data Documentation

ReadWriteMutex to be locked/unlocked

Definition at line 172 of file rwlock.h.


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

Generated on Tue Mar 10 14:41:44 2009 for VRUT by  doxygen 1.5.5