summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMikael Ronström <mikael@dator9>2011-02-16 19:30:02 +0100
committerMikael Ronström <mikael@dator9>2011-02-16 19:30:02 +0100
commitb04b333e2590052e62a8837ce13e5287c401ef84 (patch)
tree6c191e9d250ac1c672e3dea01bf6df7e7794c746 /include
parentcb33511af6845bd9774ac79352a7f46a36359bde (diff)
downloadmariadb-git-b04b333e2590052e62a8837ce13e5287c401ef84.tar.gz
Defined private interface to THD variables, first step to plugin API
Diffstat (limited to 'include')
-rw-r--r--include/mysql/thread_pool_priv.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/include/mysql/thread_pool_priv.h b/include/mysql/thread_pool_priv.h
index 871547b9905..7657e5912c8 100644
--- a/include/mysql/thread_pool_priv.h
+++ b/include/mysql/thread_pool_priv.h
@@ -39,8 +39,26 @@
#include <table.h>
/* Needed to get access to scheduler variables */
-void* thd_get_scheduler(THD *thd);
+void* thd_get_scheduler_data(THD *thd);
+void thd_set_scheduler_data(THD *thd, void *data);
PSI_thread* thd_get_psi(THD *thd);
+void thd_set_psi(THD *thd, PSI_thread *psi);
+
+/* Interface to THD variables and functions */
+void thd_set_killed(THD *thd);
+void thd_clear_errors(THD *thd);
+void thd_set_thread_stack(THD *thd, char *stack_start);
+void thd_lock_connection_data(THD *thd);
+void thd_unlock_connection_data(THD *thd);
+void thd_close_connection(THD *thd);
+THD *thd_get_current_thd();
+void thd_new_connection_setup(THD *thd, char *stack_start);
+void thd_lock_data(THD *thd);
+void thd_unlock_data(THD *thd);
+bool thd_is_transaction_active(THD *thd);
+int thd_connection_has_data(THD *thd);
+void thd_set_net_read_write(THD *thd, uint val);
+void thd_set_mysys_var(THD *thd, st_my_thread_var *mysys_var);
/*
The thread pool must be able to execute commands using the connection