summaryrefslogtreecommitdiff
path: root/sql/mysqld.h
diff options
context:
space:
mode:
authorMayank Prasad <mayank.prasad@oracle.com>2011-05-18 19:47:29 +0530
committerMayank Prasad <mayank.prasad@oracle.com>2011-05-18 19:47:29 +0530
commit359549beabcdafaa847dc41ef2566d414331f79d (patch)
tree388d5a17eecb020be35658a7d2e81cedc23805ec /sql/mysqld.h
parenta48bff1d90ca132afeed0eef4a24221070ee965a (diff)
downloadmariadb-git-359549beabcdafaa847dc41ef2566d414331f79d.tar.gz
merge from 5.1 for bug#11764633
Diffstat (limited to 'sql/mysqld.h')
-rw-r--r--sql/mysqld.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/mysqld.h b/sql/mysqld.h
index 303ee5bec0f..d2366224b3f 100644
--- a/sql/mysqld.h
+++ b/sql/mysqld.h
@@ -216,6 +216,10 @@ extern char err_shared_dir[];
extern TYPELIB thread_handling_typelib;
extern my_decimal decimal_zero;
+/*
+ THR_MALLOC is a key which will be used to set/get MEM_ROOT** for a thread,
+ using my_pthread_setspecific_ptr()/my_thread_getspecific_ptr().
+*/
extern pthread_key(MEM_ROOT**,THR_MALLOC);
#ifdef HAVE_PSI_INTERFACE
@@ -503,6 +507,10 @@ get_thread_running()
extern "C" THD *_current_thd_noinline();
#define _current_thd() _current_thd_noinline()
#else
+/*
+ THR_THD is a key which will be used to set/get THD* for a thread,
+ using my_pthread_setspecific_ptr()/my_thread_getspecific_ptr().
+*/
extern pthread_key(THD*, THR_THD);
inline THD *_current_thd(void)
{