![]() |
MySQL 9.3.0
Source Code Documentation
|
Instrumentation helpers for mutexes. More...
#include "my_psi_config.h"
#include "mysql/components/services/bits/mysql_mutex_bits.h"
#include "mysql/components/services/bits/psi_mutex_bits.h"
#include "mysql/psi/psi_mutex.h"
#include "thr_mutex.h"
#include "pfs_mutex_provider.h"
Go to the source code of this file.
Functions | |
static void | inline_mysql_mutex_register (const char *category, PSI_mutex_info *info, int count) |
static int | inline_mysql_mutex_init (PSI_mutex_key key, mysql_mutex_t *that, const native_mutexattr_t *attr, const char *src_file, uint src_line) |
static int | inline_mysql_mutex_destroy (mysql_mutex_t *that, const char *src_file, uint src_line) |
static int | inline_mysql_mutex_lock (mysql_mutex_t *that, const char *src_file, uint src_line) |
static int | inline_mysql_mutex_trylock (mysql_mutex_t *that, const char *src_file, uint src_line) |
static int | inline_mysql_mutex_unlock (mysql_mutex_t *that, const char *src_file, uint src_line) |
Instrumentation helpers for mutexes.
This header file provides the necessary declarations to use the mutex API with the performance schema instrumentation. In some compilers (SunStudio), 'static inline' functions, when declared but not used, are not optimized away (because they are unused) by default, so that including a static inline function from a header file does create unwanted dependencies, causing unresolved symbols at link time. Other compilers, like gcc, optimize these dependencies by default.