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 Member Functions

 rwLockRead (LOW_thread_rwlock &inRwlock)
 Obtain the read lock.

 ~rwLockRead ()
 Release the read lock.


Private Attributes

LOW_thread_rwlockrwlock
 Reference to the rwlock the lock is for.


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 Tue Feb 3 11:31:08 2004 for OneWireLibrary++ by doxygen 1.3.2