50#if defined(MYSQL_SERVER) || defined(PFS_DIRECT_CALL)
55#ifndef PSI_THREAD_CALL
56#define PSI_THREAD_CALL(M) psi_thread_service->M
69#define mysql_thread_register(P1, P2, P3) \
70 inline_mysql_thread_register(P1, P2, P3)
89#define mysql_thread_create(K, P1, P2, P3, P4) \
90 inline_mysql_thread_create(K, 0, P1, P2, P3, P4)
106#define mysql_thread_create_seq(K, S, P1, P2, P3, P4) \
107 inline_mysql_thread_create(K, S, P1, P2, P3, P4)
114#define mysql_thread_set_psi_id(I) inline_mysql_thread_set_psi_id(I)
121#define mysql_thread_set_psi_THD(T) inline_mysql_thread_set_psi_THD(T)
127 int count [[maybe_unused]]) {
128#ifdef HAVE_PSI_THREAD_INTERFACE
138#ifdef HAVE_PSI_THREAD_INTERFACE
149#ifdef HAVE_PSI_THREAD_INTERFACE
158#ifdef HAVE_PSI_THREAD_INTERFACE
171#ifdef HAVE_PSI_THREAD_INTERFACE
184#ifdef HAVE_PSI_THREAD_INTERFACE
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:33
#define PSI_THREAD_CALL(M)
Definition: psi_thread.h:35
struct PSI_thread PSI_thread
Definition: psi_thread_bits.h:81
unsigned int PSI_thread_key
Instrumented thread key.
Definition: psi_thread_bits.h:49
static int inline_mysql_thread_create(PSI_thread_key key, unsigned int sequence_number, my_thread_handle *thread, const my_thread_attr_t *attr, my_start_routine start_routine, void *arg)
Definition: mysql_thread.h:133
static void inline_mysql_thread_set_psi_THD(THD *thd)
Definition: mysql_thread.h:157
static void inline_mysql_thread_set_psi_id(my_thread_id id)
Definition: mysql_thread.h:147
static void mysql_thread_set_peer_port(uint port)
Definition: mysql_thread.h:170
static void inline_mysql_thread_register(const char *category, PSI_thread_info *info, int count)
Definition: mysql_thread.h:123
static void mysql_thread_set_secondary_engine(bool secondary)
Definition: mysql_thread.h:182
Defines various enable/disable and HAVE_ macros related to the performance schema instrumentation sys...
Defines to make different thread packages compatible.
int my_thread_create(my_thread_handle *thread, const my_thread_attr_t *attr, my_start_routine func, void *arg)
Definition: my_thread.cc:77
void *(* my_start_routine)(void *)
Definition: my_thread.h:71
pthread_attr_t my_thread_attr_t
Definition: my_thread_bits.h:48
uint32 my_thread_id
Definition: my_thread_local.h:33
static int count
Definition: myisam_ftdump.cc:42
static const char * category
Definition: sha2_password.cc:169
Performance schema instrumentation (declarations).
struct result result
Definition: result.h:33
Performance schema instrumentation interface.
required string key
Definition: replication_asynchronous_connection_failover.proto:59
required uint64 port
Definition: replication_asynchronous_connection_failover.proto:32
Thread instrument information.
Definition: psi_thread_bits.h:116
Definition: my_thread_bits.h:51
unsigned int uint
Definition: uca9-dump.cc:74
unsigned long id[MAX_DEAD]
Definition: xcom_base.cc:509