24#ifndef CURRENT_THD_INCLUDED
25#define CURRENT_THD_INCLUDED
29#if defined(MYSQL_DYNAMIC_PLUGIN) && defined(_WIN32)
30extern "C" THD *_current_thd_noinline();
31static inline THD *inline_current_thd(
void) {
return _current_thd_noinline(); }
32#define current_thd _current_thd_noinline()
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:34
thread_local THD * current_thd
Definition: current_thd.cc:26