Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
71553c2c
Commit
71553c2c
authored
Jun 15, 2010
by
Mats Kindahl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WL#5363: Thread Pool Service Interface
Fixes to ensure that it builds with the embedded server as well.
parent
b1dcf448
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
sql/scheduler.cc
sql/scheduler.cc
+7
-2
No files found.
sql/scheduler.cc
View file @
71553c2c
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment