Commit 21326513 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

Remove some trailing whitespaces.

parent 5bf9e0f8
...@@ -167,7 +167,6 @@ static void print_pool_blocked_message(bool); ...@@ -167,7 +167,6 @@ static void print_pool_blocked_message(bool);
descriptors can be retrieved from native_events array, using descriptors can be retrieved from native_events array, using
native_event_get_userdata() function. native_event_get_userdata() function.
On Linux: epoll_wait() On Linux: epoll_wait()
*/ */
...@@ -767,7 +766,6 @@ static TP_connection_generic * listener(worker_thread_t *current_thread, ...@@ -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 we suspect flood of network events and listener stays, Otherwise, it
handles a query. handles a query.
Q2: If queue is not empty, how many workers to wake? Q2: If queue is not empty, how many workers to wake?
Solution: Solution:
...@@ -868,7 +866,6 @@ static int create_worker(thread_group_t *thread_group, bool due_to_stall) ...@@ -868,7 +866,6 @@ static int create_worker(thread_group_t *thread_group, bool due_to_stall)
goto end; goto end;
} }
err= mysql_thread_create(key_worker_thread, &thread_id, err= mysql_thread_create(key_worker_thread, &thread_id,
thread_group->pthread_attr, worker_main, thread_group); thread_group->pthread_attr, worker_main, thread_group);
if (!err) if (!err)
...@@ -1300,15 +1297,13 @@ void wait_end(thread_group_t *thread_group) ...@@ -1300,15 +1297,13 @@ void wait_end(thread_group_t *thread_group)
} }
TP_connection * TP_pool_generic::new_connection(CONNECT *c) TP_connection * TP_pool_generic::new_connection(CONNECT *c)
{ {
return new (std::nothrow) TP_connection_generic(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) void TP_pool_generic::add(TP_connection *c)
...@@ -1748,6 +1743,4 @@ static void print_pool_blocked_message(bool max_threads_reached) ...@@ -1748,6 +1743,4 @@ static void print_pool_blocked_message(bool max_threads_reached)
} }
} }
#endif /* HAVE_POOL_OF_THREADS */ #endif /* HAVE_POOL_OF_THREADS */
...@@ -322,7 +322,7 @@ static void pre_callback(PVOID context, PTP_CALLBACK_INSTANCE instance) ...@@ -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. On Windows, FlsAlloc() provides the thread destruction callbacks.
*/ */
static VOID WINAPI thread_destructor(void *data) static VOID WINAPI thread_destructor(void *data)
......
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