37#if defined(MYSQL_SERVER) || defined(PFS_DIRECT_CALL)
43#define PSI_IDLE_CALL(M) psi_idle_service->M
60#ifdef HAVE_PSI_IDLE_INTERFACE
61#define MYSQL_START_IDLE_WAIT(LOCKER, STATE) \
62 LOCKER = inline_mysql_start_idle_wait(STATE, __FILE__, __LINE__)
64#define MYSQL_START_IDLE_WAIT(LOCKER, STATE) \
76#ifdef HAVE_PSI_IDLE_INTERFACE
77#define MYSQL_END_IDLE_WAIT(LOCKER) inline_mysql_end_idle_wait(LOCKER)
79#define MYSQL_END_IDLE_WAIT(LOCKER) \
84#ifdef HAVE_PSI_IDLE_INTERFACE
92 locker =
PSI_IDLE_CALL(start_idle_wait)(state, src_file, src_line);
101 if (
likely(locker !=
nullptr)) {
#define PSI_IDLE_CALL(M)
Definition: psi_idle.h:36
struct PSI_idle_locker PSI_idle_locker
Definition: psi_idle_bits.h:41
static void inline_mysql_end_idle_wait(struct PSI_idle_locker *locker)
Instrumentation calls for MYSQL_END_IDLE_WAIT.
Definition: mysql_idle.h:100
static struct PSI_idle_locker * inline_mysql_start_idle_wait(PSI_idle_locker_state *state, const char *src_file, int src_line)
Instrumentation calls for MYSQL_START_IDLE_WAIT.
Definition: mysql_idle.h:89
constexpr bool likely(bool expr)
Definition: my_compiler.h:57
Defines various enable/disable and HAVE_ macros related to the performance schema instrumentation sys...
Performance schema instrumentation (declarations).
Performance schema instrumentation interface.
State data storage for start_idle_wait_v1_t.
Definition: psi_idle_bits.h:52