MVault 0.0.1
|
A class for blocking a stream for reading. More...
#include <ReadWriteMutex.h>
Public Member Functions | |
ReadLock (Mutex &mtx) | |
Constructor. | |
~ReadLock () | |
Destructor. | |
A class for blocking a stream for reading.
In the constructor, this class captures Mutex and blocks it for reading, and unlocks it in the destructor.
<Mutex> | a mutex that supports read and write lock operations |
ReadWriteMutex | a standard mutex that supports read and write lock operations |
RecursiveReadWriteMutex | a recursive mutex that supports read and write lock operations |
|
inline |
Constructor.
Lock thread to read
[in] | mtx | mutex to capture and lock |
|
inline |
Destructor.
Unlock captured mutex