40 #ifdef HAVE_PSI_IDLE_INTERFACE
41 #define MYSQL_START_IDLE_WAIT(LOCKER, STATE) \
42 LOCKER= inline_mysql_start_idle_wait(STATE, __FILE__, __LINE__)
44 #define MYSQL_START_IDLE_WAIT(LOCKER, STATE) \
55 #ifdef HAVE_PSI_IDLE_INTERFACE
56 #define MYSQL_END_IDLE_WAIT(LOCKER) \
57 inline_mysql_end_idle_wait(LOCKER)
59 #define MYSQL_END_IDLE_WAIT(LOCKER) \
63 #ifdef HAVE_PSI_IDLE_INTERFACE
68 static inline struct PSI_idle_locker *
69 inline_mysql_start_idle_wait(PSI_idle_locker_state *state,
70 const char *src_file,
int src_line)
72 struct PSI_idle_locker *locker;
73 locker= PSI_IDLE_CALL(start_idle_wait)(state, src_file, src_line);
82 inline_mysql_end_idle_wait(
struct PSI_idle_locker *locker)
84 if (likely(locker != NULL))
85 PSI_IDLE_CALL(end_idle_wait)(locker);