Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

LOW_thread_rwlock::rwLockRead Class Reference

Read locking class for a rwlock. More...

#include <LOW_thread_rwlock.h>

Collaboration diagram for LOW_thread_rwlock::rwLockRead:

Collaboration graph
[legend]
List of all members.

Public Methods

 rwLockRead (LOW_thread_rwlock &inRwlock)
 Obtain the read lock. More...

 ~rwLockRead ()
 Release the read lock. More...


Private Attributes

LOW_thread_rwlockrwlock
 Reference to the rwlock the lock is for. More...


Detailed Description

Read locking class for a rwlock.

The class is intended to be used in a "locking is creation" design pattern. On creation a read lock is optained on the rwlock, and on destruction the rwlock is released.

Definition at line 71 of file LOW_thread_rwlock.h.


Constructor & Destructor Documentation

LOW_thread_rwlock::rwLockRead::rwLockRead LOW_thread_rwlock   inRwlock [inline]
 

Obtain the read lock.

Inlined for performance reasons.

Parameters:
inRwlock  Reference to the rwlock the lock is for.

Definition at line 77 of file LOW_thread_rwlock.h.

References LOW_thread_rwlock::lockRead(), and rwlock.

LOW_thread_rwlock::rwLockRead::~rwLockRead   [inline]
 

Release the read lock.

Inlined for performance reasons.

Definition at line 86 of file LOW_thread_rwlock.h.

References rwlock, and LOW_thread_rwlock::unlock().


Member Data Documentation

LOW_thread_rwlock& LOW_thread_rwlock::rwLockRead::rwlock [private]
 

Reference to the rwlock the lock is for.

Definition at line 92 of file LOW_thread_rwlock.h.

Referenced by rwLockRead(), and ~rwLockRead().


The documentation for this class was generated from the following file:
Generated on Mon Oct 27 22:56:33 2003 by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001