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

 rwLockWrite (LOW_thread_rwlock &inRwlock)
 Obtain the write lock.

 ~rwLockWrite ()
 Release the read lock.


Private Attributes

LOW_thread_rwlockrwlock
 Reference to the rwlock the lock is for.


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