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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
21326513
Commit
21326513
authored
May 29, 2020
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove some trailing whitespaces.
parent
5bf9e0f8
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
205 additions
and
212 deletions
+205
-212
sql/threadpool.h
sql/threadpool.h
+1
-1
sql/threadpool_common.cc
sql/threadpool_common.cc
+11
-11
sql/threadpool_generic.cc
sql/threadpool_generic.cc
+184
-191
sql/threadpool_generic.h
sql/threadpool_generic.h
+1
-1
sql/threadpool_win.cc
sql/threadpool_win.cc
+8
-8
No files found.
sql/threadpool.h
View file @
21326513
sql/threadpool_common.cc
View file @
21326513
sql/threadpool_generic.cc
View file @
21326513
...
...
@@ -167,7 +167,6 @@ static void print_pool_blocked_message(bool);
descriptors can be retrieved from native_events array, using
native_event_get_userdata() function.
On Linux: epoll_wait()
*/
...
...
@@ -767,7 +766,6 @@ static TP_connection_generic * listener(worker_thread_t *current_thread,
we suspect flood of network events and listener stays, Otherwise, it
handles a query.
Q2: If queue is not empty, how many workers to wake?
Solution:
...
...
@@ -868,7 +866,6 @@ static int create_worker(thread_group_t *thread_group, bool due_to_stall)
goto
end
;
}
err
=
mysql_thread_create
(
key_worker_thread
,
&
thread_id
,
thread_group
->
pthread_attr
,
worker_main
,
thread_group
);
if
(
!
err
)
...
...
@@ -1300,15 +1297,13 @@ void wait_end(thread_group_t *thread_group)
}
TP_connection
*
TP_pool_generic
::
new_connection
(
CONNECT
*
c
)
{
return
new
(
std
::
nothrow
)
TP_connection_generic
(
c
);
}
/**
Add a new connection to thread pool
..
Add a new connection to thread pool
*/
void
TP_pool_generic
::
add
(
TP_connection
*
c
)
...
...
@@ -1748,6 +1743,4 @@ static void print_pool_blocked_message(bool max_threads_reached)
}
}
#endif
/* HAVE_POOL_OF_THREADS */
sql/threadpool_generic.h
View file @
21326513
sql/threadpool_win.cc
View file @
21326513
...
...
@@ -322,7 +322,7 @@ static void pre_callback(PVOID context, PTP_CALLBACK_INSTANCE instance)
/*
Decrement number of threads when a thread exits
.
Decrement number of threads when a thread exits
.
On Windows, FlsAlloc() provides the thread destruction callbacks.
*/
static
VOID
WINAPI
thread_destructor
(
void
*
data
)
...
...
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