3 #ifndef __SQLITEXX_SQLITE_MUTEX_H__
4 #define __SQLITEXX_SQLITE_MUTEX_H__
22 mutex(
const mutex &other) =
default;
38 sqlite3_mutex *native_handle;
bool try_lock() noexcept
Tries to lock the mutex, returns if the mutex is not available.
Helps with serializing access to a database connection.
void unlock() noexcept
Unlocks the mutex.
void lock() noexcept
Locks the mutex and blocks if the mutex is not available.