Helps with serializing access to a database connection. More...
#include <Mutex.h>
Public Member Functions | |
| void | lock () noexcept |
| Locks the mutex and blocks if the mutex is not available. | |
| bool | try_lock () noexcept |
| Tries to lock the mutex, returns if the mutex is not available. More... | |
| void | unlock () noexcept |
| Unlocks the mutex. | |
Helps with serializing access to a database connection.
mutexes are only useful when threading mode is set to "Serialized".
This mutex class can be used with std::lock_guard as it meets the BasicLockable requirements.
|
noexcept |
1.8.6