23 #include "ocilibcpp/core.hpp" 29 inline Locker::Locker() : _mutex(nullptr)
34 inline Locker::~Locker() noexcept
36 SILENT_CATCH(SetAccessMode(
false));
39 inline void Locker::SetAccessMode(
bool threaded)
41 if (threaded && !_mutex)
45 else if (!threaded && _mutex)
52 inline void Locker::Lock()
const 60 inline void Locker::Unlock()
const
static void Release(MutexHandle handle)
Release a mutex lock.
static void Destroy(MutexHandle handle)
Destroy a mutex handle.
static MutexHandle Create()
Create a Mutex handle.
static void Acquire(MutexHandle handle)
Acquire a mutex lock.