#include <LOW_thread_rwlock.h>
Collaboration diagram for LOW_thread_rwlock::rwLockWrite:
Public Member Functions | |
rwLockWrite (LOW_thread_rwlock &inRwlock) | |
Obtain the write lock. | |
~rwLockWrite () | |
Release the read lock. | |
Private Attributes | |
LOW_thread_rwlock & | rwlock |
Reference to the rwlock the lock is for. |
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.
|
Obtain the write lock. Inlined for performance reasons.
Definition at line 107 of file LOW_thread_rwlock.h. References LOW_thread_rwlock::lockWrite(), and rwlock. |
|
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(). |
|
Reference to the rwlock the lock is for.
Definition at line 122 of file LOW_thread_rwlock.h. Referenced by rwLockWrite(), and ~rwLockWrite(). |