MVault 0.0.1
|
A class for blocking a stream for writing. More...
#include <ReadWriteMutex.h>
Public Member Functions | |
WriteLock (Mutex &mtx) | |
Constructor. | |
~WriteLock () | |
Destructor. | |
A class for blocking a stream for writing.
In the constructor, this class captures Mutex and blocks it for writing, 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 write
[in] | mtx | mutex to capture and lock |
|
inline |
Destructor.
Unlock captured mutex