summaryrefslogtreecommitdiff
path: root/sql/scheduler.cc
diff options
context:
space:
mode:
authorMikael Ronström <mikael@dator9>2011-02-10 19:24:31 +0100
committerMikael Ronström <mikael@dator9>2011-02-10 19:24:31 +0100
commite51abaa128c6aa6aa257b6c853fb4bec4bfd5316 (patch)
tree25e1b3b6fedc808f209754fc53ea02c068036449 /sql/scheduler.cc
parent77242983b3afeb5ac58032b9e3d9c0fd02ae8646 (diff)
downloadmariadb-git-e51abaa128c6aa6aa257b6c853fb4bec4bfd5316.tar.gz
Simplifications of server interface to scheduler
Diffstat (limited to 'sql/scheduler.cc')
-rw-r--r--sql/scheduler.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/scheduler.cc b/sql/scheduler.cc
index 4c56e360e0e..d9a98f37e39 100644
--- a/sql/scheduler.cc
+++ b/sql/scheduler.cc
@@ -160,6 +160,16 @@ thd_scheduler::~thd_scheduler()
{
}
+void* thd_get_scheduler(THD *thd)
+{
+ return thd->scheduler.data;
+}
+
+PSI_thread* thd_get_psi(THD *thd)
+{
+ return thd->scheduler.m_psi;
+}
+
static scheduler_functions *saved_thread_scheduler;
static uint saved_thread_handling;