Commit 7017775f authored by Mats Kindahl's avatar Mats Kindahl

WL#5363: Thread Pool Service Interface

Fixes to ensure that it builds with the embedded server as well.
parent aaf2bdde
...@@ -44,7 +44,11 @@ static scheduler_functions one_thread_scheduler_functions= ...@@ -44,7 +44,11 @@ static scheduler_functions one_thread_scheduler_functions=
1, // max_threads 1, // max_threads
NULL, // init NULL, // init
init_new_connection_handler_thread, // init_new_connection_thread init_new_connection_handler_thread, // init_new_connection_thread
#ifndef EMBEDDED_LIBRARY
handle_connection_in_main_thread, // add_connection handle_connection_in_main_thread, // add_connection
#else
NULL, // add_connection
#endif // EMBEDDED_LIBRARY
NULL, // thd_wait_begin NULL, // thd_wait_begin
NULL, // thd_wait_end NULL, // thd_wait_end
NULL, // post_kill_notification NULL, // post_kill_notification
...@@ -52,6 +56,7 @@ static scheduler_functions one_thread_scheduler_functions= ...@@ -52,6 +56,7 @@ static scheduler_functions one_thread_scheduler_functions=
NULL, // end NULL, // end
}; };
#ifndef EMBEDDED_LIBRARY
static scheduler_functions one_thread_per_connection_scheduler_functions= static scheduler_functions one_thread_per_connection_scheduler_functions=
{ {
0, // max_threads 0, // max_threads
...@@ -64,10 +69,10 @@ static scheduler_functions one_thread_per_connection_scheduler_functions= ...@@ -64,10 +69,10 @@ static scheduler_functions one_thread_per_connection_scheduler_functions=
one_thread_per_connection_end, // end_thread one_thread_per_connection_end, // end_thread
NULL, // end NULL, // end
}; };
#endif // EMBEDDED_LIBRARY
scheduler_functions *thread_scheduler= scheduler_functions *thread_scheduler= NULL;
&one_thread_per_connection_scheduler_functions;
/** @internal /** @internal
Helper functions to allow mysys to call the thread scheduler when Helper functions to allow mysys to call the thread scheduler when
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment