Type Alias mariadb_sys::mysql_mutex_t

source ·
pub type mysql_mutex_t = st_mysql_mutex;
Expand description

Type of an instrumented mutex. @c mysql_mutex_t is a drop-in replacement for @c pthread_mutex_t. @sa mysql_mutex_assert_owner @sa mysql_mutex_assert_not_owner @sa mysql_mutex_init @sa mysql_mutex_lock @sa mysql_mutex_unlock @sa mysql_mutex_destroy

Aliased Type§

struct mysql_mutex_t {
    pub m_mutex: pthread_mutex_t,
    pub m_psi: *mut PSI_mutex,
}

Fields§

§m_mutex: pthread_mutex_t§m_psi: *mut PSI_mutex

The instrumentation hook. Note that this hook is not conditionally defined, for binary compatibility of the @c mysql_mutex_t interface.