#include <cel_rwlock.h>
Public Member Functions | |
ReaderWriterLock () | |
~ReaderWriterLock () | |
void | lockForRead () |
void | lockForWrite () |
void | unlock () |
This class implements typical Reader-Writer lock. The Reader-Writer lock is used in the situation which meets the following conditions:
You can use this class as auto variable like the following code:
|
inline |
Initializes the instance.
|
inline |
Uninitialize the instance.
|
inline |
Lock for read access.
Referenced by Celartem::RWLock::lock(), and Celartem::ReaderWriterLockLockerTempl< isWriter >::lock().
|
inline |
Lock for write access.
Referenced by Celartem::RWLock::lock(), and Celartem::ReaderWriterLockLockerTempl< isWriter >::lock().
|
inline |
Unlock the last lock (either of read or write).
Referenced by Celartem::RWLock::unlock(), and Celartem::ReaderWriterLockLockerTempl< isWriter >::unlock().