diff options
Diffstat (limited to 'sql/scheduler.cc')
-rw-r--r-- | sql/scheduler.cc | 10 |
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; |