mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
Added setters to scheduler interface
This commit is contained in:
parent
1d6945a017
commit
503294a268
2 changed files with 15 additions and 3 deletions
|
|
@ -96,8 +96,10 @@ public:
|
|||
~thd_scheduler();
|
||||
};
|
||||
|
||||
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);
|
||||
|
||||
extern scheduler_functions *thread_scheduler;
|
||||
|
||||
|
|
|
|||
|
|
@ -217,16 +217,26 @@ bool foreign_key_prefix(Key *a, Key *b)
|
|||
** Thread specific functions
|
||||
****************************************************************************/
|
||||
|
||||
void* thd_get_scheduler(THD *thd)
|
||||
void *thd_get_scheduler_data(THD *thd)
|
||||
{
|
||||
return thd->scheduler.data;
|
||||
}
|
||||
|
||||
PSI_thread* thd_get_psi(THD *thd)
|
||||
void thd_set_scheduler_data(THD *thd, void *data)
|
||||
{
|
||||
thd->scheduler.data= data;
|
||||
}
|
||||
|
||||
PSI_thread *thd_get_psi(THD *thd)
|
||||
{
|
||||
return thd->scheduler.m_psi;
|
||||
}
|
||||
|
||||
void thd_set_psi(THD *thd, PSI_thread *psi)
|
||||
{
|
||||
thd->scheduler.m_psi= psi;
|
||||
}
|
||||
|
||||
/*
|
||||
The following functions form part of the C plugin API
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue