24#ifndef INSTRUMENTED_MUTEX_H
25#define INSTRUMENTED_MUTEX_H
mutex is a C++ STL mutex (std::mutex) implementation using the instrumented MySQL mutex component API...
Definition: instrumented_mutex.h:51
void lock()
Definition: instrumented_mutex.h:58
mysql_mutex_t m_mtx
Definition: instrumented_mutex.h:64
void unlock()
Definition: instrumented_mutex.h:60
mutex(const mutex &)=delete
mutex(PSI_mutex_key key) noexcept
Definition: instrumented_mutex.h:53
bool try_lock()
Definition: instrumented_mutex.h:59
~mutex()
Definition: instrumented_mutex.h:57
mysql_mutex_t * native_handle()
Definition: instrumented_mutex.h:61
PSI_mutex_key m_key
Definition: instrumented_mutex.h:65
#define mysql_mutex_lock(M)
Definition: mysql_mutex.h:50
#define mysql_mutex_destroy(M)
Definition: mysql_mutex.h:46
#define mysql_mutex_unlock(M)
Definition: mysql_mutex.h:57
#define mysql_mutex_trylock(M)
Definition: mysql_mutex.h:53
#define mysql_mutex_init(K, M, A)
Definition: mysql_mutex.h:41
unsigned int PSI_mutex_key
Instrumented mutex key.
Definition: psi_mutex_bits.h:52
Definition: instrumented_condition_variable.h:32
required string key
Definition: replication_asynchronous_connection_failover.proto:60
An instrumented mutex structure.
Definition: mysql_mutex_bits.h:50