mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
Simplifications of server interface to scheduler
This commit is contained in:
parent
af948cd6fc
commit
8d319b1f29
3 changed files with 30 additions and 6 deletions
|
|
@ -72,11 +72,6 @@ enum scheduler_types
|
|||
void one_thread_per_connection_scheduler();
|
||||
void one_thread_scheduler();
|
||||
|
||||
enum pool_command_op
|
||||
{
|
||||
NOT_IN_USE_OP= 0, NORMAL_OP= 1, CONNECT_OP, KILL_OP, DIE_OP
|
||||
};
|
||||
|
||||
/*
|
||||
To be used for pool-of-threads (implemeneted differently on various OSs)
|
||||
*/
|
||||
|
|
@ -101,6 +96,9 @@ public:
|
|||
~thd_scheduler();
|
||||
};
|
||||
|
||||
void *thd_get_scheduler(THD *thd);
|
||||
PSI_thread* thd_get_psi(THD *thd);
|
||||
|
||||
extern scheduler_functions *thread_scheduler;
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue