MVault 1.0.0
Simple c++ database
|
A class for blocking a stream for reading. More...
#include <ReadWriteMutex.h>
Public Member Functions | |
ReadLock () noexcept=delete | |
Deleted default constructor. | |
ReadLock (const ReadLock< Mutex > &other) noexcept=delete | |
Deleted copy constructor. | |
ReadLock (ReadLock< Mutex > &&other) noexcept=delete | |
Deleted move constructor. | |
ReadLock (Mutex &mtx) noexcept | |
Constructor. | |
ReadLock< Mutex > & | operator= (const ReadLock< Mutex > &other) noexcept=delete |
Deleted assignment operator. | |
ReadLock< Mutex > & | operator= (ReadLock< Mutex > &&other) noexcept=delete |
Deleted move assignment operator. | |
~ReadLock () noexcept | |
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 |
|
deletenoexcept |
Deleted copy constructor.
[in] | other | object to copy |
|
deletenoexcept |
Deleted move constructor.
[in] | other | object to move |
|
inlineexplicitnoexcept |
Constructor.
Lock thread to read
[in] | mtx | mutex to capture and lock |
|
inlinenoexcept |
Destructor.
Unlock captured mutex
|
deletenoexcept |
Deleted assignment operator.
[in] | other | object to copy |
Deleted move assignment operator.
[in] | other | object to move |