MySQL 8.0.40
Source Code Documentation
thr_mutex_bits.h File Reference

ABI for thd_mutex. More...

#include <pthread.h>
#include <sched.h>

Go to the source code of this file.

Classes

struct  my_mutex_t
 
union  my_mutex_t::u
 

Typedefs

typedef pthread_mutex_t native_mutex_t
 
typedef pthread_mutexattr_t native_mutexattr_t
 
typedef struct my_mutex_t my_mutex_t
 

Detailed Description

ABI for thd_mutex.

There are three "layers": 1) native_mutex_*() Functions that map directly down to OS primitives. Windows - CriticalSection Other OSes - pthread 2) my_mutex_*() Functions that implement SAFE_MUTEX (default for debug), Otherwise native_mutex_*() is used. 3) mysql_mutex_*() Functions that include Performance Schema instrumentation. See include/mysql/psi/mysql_thread.h

Typedef Documentation

◆ my_mutex_t

typedef struct my_mutex_t my_mutex_t

◆ native_mutex_t

typedef pthread_mutex_t native_mutex_t

◆ native_mutexattr_t

typedef pthread_mutexattr_t native_mutexattr_t