24#ifndef MUTEX_LOCK_INCLUDED
25#define MUTEX_LOCK_INCLUDED
61 src.m_mutex =
nullptr;
62 src.m_src_file =
nullptr;
83#define MUTEX_LOCK(NAME, X) const Mutex_lock NAME(X, __FILE__, __LINE__)
A simple wrapper around a mutex: Grabs the mutex in the CTOR, releases it in the DTOR.
Definition: mutex_lock.h:42
Generic_mutex_lock(const Generic_mutex_lock &)=delete
const char * m_src_file
Definition: mutex_lock.h:77
Generic_mutex_lock & operator=(const Generic_mutex_lock &)=delete
MUTEX * m_mutex
Definition: mutex_lock.h:76
Generic_mutex_lock(Generic_mutex_lock &&src) noexcept
Definition: mutex_lock.h:57
int m_src_line
Definition: mutex_lock.h:78
~Generic_mutex_lock() noexcept
Definition: mutex_lock.h:51
Generic_mutex_lock & operator=(Generic_mutex_lock &&src) noexcept
Definition: mutex_lock.h:67
Generic_mutex_lock() noexcept=default
#define mysql_mutex_lock_with_src(M, F, L)
Definition: mysql_mutex.h:51
#define mysql_mutex_unlock_with_src(M, F, L)
Definition: mysql_mutex.h:58
Instrumentation helpers for mutexes.
static void swap(String &a, String &b) noexcept
Definition: sql_string.h:642