9#ifndef HEADER_SQLITEPP_MUTEX_IFACE_INCLUDED
10#define HEADER_SQLITEPP_MUTEX_IFACE_INCLUDED
49 fast = SQLITE_MUTEX_FAST,
50 recursive = SQLITE_MUTEX_RECURSIVE
Base functionality for all fake wrapper classes
Definition handle.hpp:27
sqlite3_mutex * c_ptr() const noexcept
Definition handle.hpp:45
static mutex * from(sqlite3_mutex *obj) noexcept
Definition handle.hpp:41
A mutex adapter for Lockable concept that works with null and non-null mutexes.
Definition mutex_iface.hpp:115
void unlock() noexcept
Unlock the mutex.
Definition mutex_iface.hpp:146
void lock() noexcept
Lock the mutex.
Definition mutex_iface.hpp:130
lock_adapter(mutex *mutex=nullptr) noexcept
Adapt a mutex pointer.
Definition mutex_iface.hpp:118
bool try_lock() noexcept
Try to lock the mutex.
Definition mutex_iface.hpp:138
lock_adapter(const std::unique_ptr< mutex > &mutex) noexcept
Adapt a std::unique_ptr<mutex>
Definition mutex_iface.hpp:121
SQLite Mutex.
Definition mutex_iface.hpp:45
void unlock() noexcept
Unlock the mutex.
Definition mutex_iface.hpp:93
void lock() noexcept
Lock the mutex.
Definition mutex_iface.hpp:78
static std::unique_ptr< mutex > alloc(type t) noexcept
Allocate a new mutex.
Definition mutex_iface.hpp:70
type
Type of mutex to allocate for alloc()
Definition mutex_iface.hpp:48
bool try_lock() noexcept
Try to lock the mutex.
Definition mutex_iface.hpp:85
ThinSQLite++ namespace.
Definition backup_iface.hpp:17