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

LOW_thread_rwlock::rwLockWrite Class Reference

Write locking class for a rwlock. More...

#include <LOW_thread_rwlock.h>

Collaboration diagram for LOW_thread_rwlock::rwLockWrite:

Collaboration graph
[legend]
List of all members.

Public Methods

 rwLockWrite (LOW_thread_rwlock &inRwlock)
 Obtain the write lock. More...

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


Private Attributes

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


Detailed Description

Write locking class for a rwlock.

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

Definition at line 101 of file LOW_thread_rwlock.h.


Constructor & Destructor Documentation

LOW_thread_rwlock::rwLockWrite::rwLockWrite LOW_thread_rwlock   inRwlock [inline]
 

Obtain the write lock.

Inlined for performance reasons.

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

Definition at line 107 of file LOW_thread_rwlock.h.

References LOW_thread_rwlock::lockWrite(), and rwlock.

LOW_thread_rwlock::rwLockWrite::~rwLockWrite   [inline]
 

Release the read lock.

Inlined for performance reasons.

Definition at line 116 of file LOW_thread_rwlock.h.

References rwlock, and LOW_thread_rwlock::unlock().


Member Data Documentation

LOW_thread_rwlock& LOW_thread_rwlock::rwLockWrite::rwlock [private]
 

Reference to the rwlock the lock is for.

Definition at line 122 of file LOW_thread_rwlock.h.

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


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