MySQL  8.0.19
Source Code Documentation
service_locking.h File Reference
#include <stdint.h>

Go to the source code of this file.

Classes

struct  mysql_locking_service_st
 

Macros

#define MYSQL_THD   THD *
 

Typedefs

typedef int(* mysql_acquire_locks_t) (MYSQL_THD opaque_thd, const char *lock_namespace, const char **lock_names, size_t lock_num, enum enum_locking_service_lock_type lock_type, uint64_t lock_timeout)
 
typedef int(* mysql_release_locks_t) (MYSQL_THD opaque_thd, const char *lock_namespace)
 

Enumerations

enum  enum_locking_service_lock_type { LOCKING_SERVICE_READ, LOCKING_SERVICE_WRITE }
 Types of locking service locks. More...
 

Functions

int mysql_acquire_locking_service_locks (MYSQL_THD opaque_thd, const char *lock_namespace, const char **lock_names, size_t lock_num, enum enum_locking_service_lock_type lock_type, uint64_t lock_timeout)
 
int mysql_release_locking_service_locks (MYSQL_THD opaque_thd, const char *lock_namespace)
 

Variables

struct mysql_locking_service_stmysql_locking_service
 

Detailed Description

Implements mysql_locking_service_st

Macro Definition Documentation

◆ MYSQL_THD

#define MYSQL_THD   THD *

Typedef Documentation

◆ mysql_acquire_locks_t

typedef int(* mysql_acquire_locks_t) (MYSQL_THD opaque_thd, const char *lock_namespace, const char **lock_names, size_t lock_num, enum enum_locking_service_lock_type lock_type, uint64_t lock_timeout)

◆ mysql_release_locks_t

typedef int(* mysql_release_locks_t) (MYSQL_THD opaque_thd, const char *lock_namespace)

Enumeration Type Documentation

◆ enum_locking_service_lock_type

Types of locking service locks.

LOCKING_SERVICE_READ is compatible with LOCKING_SERVICE_READ. All other combinations are incompatible.

Enumerator
LOCKING_SERVICE_READ 
LOCKING_SERVICE_WRITE 

Function Documentation

◆ mysql_acquire_locking_service_locks()

int mysql_acquire_locking_service_locks ( MYSQL_THD  opaque_thd,
const char *  lock_namespace,
const char **  lock_names,
size_t  lock_num,
enum enum_locking_service_lock_type  lock_type,
uint64_t  lock_timeout 
)

◆ mysql_release_locking_service_locks()

int mysql_release_locking_service_locks ( MYSQL_THD  opaque_thd,
const char *  lock_namespace 
)