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