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
commit8d319b1f29537437ecf5f93003308fc16bdcd123 (patch)
tree25e1b3b6fedc808f209754fc53ea02c068036449 /sql/scheduler.cc
parentaf948cd6fce0878375b363b980f7432ef41273b9 (diff)
downloadmariadb-git-8d319b1f29537437ecf5f93003308fc16bdcd123.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;