51#if defined(MYSQL_SERVER) || defined(PFS_DIRECT_CALL)
56#ifndef PSI_THREAD_CALL
57#define PSI_THREAD_CALL(M) psi_thread_service->M
70#define mysql_thread_register(P1, P2, P3) \
71 inline_mysql_thread_register(P1, P2, P3)
90#define mysql_thread_create(K, P1, P2, P3, P4) \
91 inline_mysql_thread_create(K, 0, P1, P2, P3, P4)
107#define mysql_thread_create_seq(K, S, P1, P2, P3, P4) \
108 inline_mysql_thread_create(K, S, P1, P2, P3, P4)
115#define mysql_thread_set_psi_id(I) inline_mysql_thread_set_psi_id(I)
122#define mysql_thread_set_psi_THD(T) inline_mysql_thread_set_psi_THD(T)
128 int count [[maybe_unused]]) {
129#ifdef HAVE_PSI_THREAD_INTERFACE
139#ifdef HAVE_PSI_THREAD_INTERFACE
150#ifdef HAVE_PSI_THREAD_INTERFACE
159#ifdef HAVE_PSI_THREAD_INTERFACE
172#ifdef HAVE_PSI_THREAD_INTERFACE
185#ifdef HAVE_PSI_THREAD_INTERFACE
196 int len [[maybe_unused]]) {
197#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:34
#define PSI_THREAD_CALL(M)
Definition: psi_thread.h:36
struct PSI_thread PSI_thread
Definition: psi_thread_bits.h:82
unsigned int PSI_thread_key
Instrumented thread key.
Definition: psi_thread_bits.h:50
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:134
static void mysql_thread_set_info(const char *str, int len)
Set the INFO attribute in the thread instrumentation.
Definition: mysql_thread.h:195
static void inline_mysql_thread_set_psi_THD(THD *thd)
Definition: mysql_thread.h:158
static void inline_mysql_thread_set_psi_id(my_thread_id id)
Definition: mysql_thread.h:148
static void mysql_thread_set_peer_port(uint port)
Definition: mysql_thread.h:171
static void inline_mysql_thread_register(const char *category, PSI_thread_info *info, int count)
Definition: mysql_thread.h:124
static void mysql_thread_set_secondary_engine(bool secondary)
Definition: mysql_thread.h:183
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:78
void *(* my_start_routine)(void *)
Definition: my_thread.h:72
pthread_attr_t my_thread_attr_t
Definition: my_thread_bits.h:49
uint32 my_thread_id
Definition: my_thread_local.h:34
static int count
Definition: myisam_ftdump.cc:43
std::string str(const mysqlrouter::ConfigGenerator::Options::Endpoint &ep)
Definition: config_generator.cc:1052
static const char * category
Definition: sha2_password.cc:170
Performance schema instrumentation (declarations).
struct result result
Definition: result.h:34
Performance schema instrumentation interface.
required string key
Definition: replication_asynchronous_connection_failover.proto:60
required uint64 port
Definition: replication_asynchronous_connection_failover.proto:33
Thread instrument information.
Definition: psi_thread_bits.h:117
Definition: my_thread_bits.h:52
unsigned int uint
Definition: uca9-dump.cc:75
unsigned long id[MAX_DEAD]
Definition: xcom_base.cc:510