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
7700626f
Commit
7700626f
authored
May 15, 2021
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove thread_pool_priv.h
parent
0c7b0189
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
108 deletions
+0
-108
include/thread_pool_priv.h
include/thread_pool_priv.h
+0
-108
No files found.
include/thread_pool_priv.h
deleted
100644 → 0
View file @
0c7b0189
#error don't use
/*
Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA
*/
#ifndef THREAD_POOL_PRIV_INCLUDED
#define THREAD_POOL_PRIV_INCLUDED
/*
The thread pool requires access to some MySQL server error codes, this is
accessed from mysqld_error.h.
We need access to the struct that defines the thread pool plugin interface
which is accessed through scheduler.h.
All accesses to THD variables and functions are defined in this header file.
A thread pool can also use DEBUG_SYNC and must thus include
debug_sync.h
To handle definitions of Information Schema plugins it is also required
to include sql_profile.h and table.h.
*/
#include <mysqld_error.h>
/* To get ER_ERROR_ON_READ */
#define MYSQL_SERVER 1
#include <scheduler.h>
#include <debug_sync.h>
#include <sql_profile.h>
#include <table.h>
#include <sql_list.h>
/* Interface to THD variables and functions */
void
thd_set_killed
(
THD
*
thd
);
void
thd_clear_errors
(
THD
*
thd
);
void
thd_set_thread_stack
(
THD
*
thd
,
char
*
stack_start
);
void
thd_lock_thread_count
(
THD
*
thd
);
void
thd_close_connection
(
THD
*
thd
);
void
thd_lock_data
(
THD
*
thd
);
void
thd_unlock_data
(
THD
*
thd
);
bool
thd_is_transaction_active
(
THD
*
thd
);
int
thd_connection_has_data
(
THD
*
thd
);
void
thd_set_net_read_write
(
THD
*
thd
,
uint
val
);
uint
thd_get_net_read_write
(
THD
*
thd
);
void
thd_set_mysys_var
(
THD
*
thd
,
st_my_thread_var
*
mysys_var
);
my_socket
thd_get_fd
(
THD
*
thd
);
int
thd_store_globals
(
THD
*
thd
);
/* Print to the MySQL error log */
void
sql_print_error
(
const
char
*
format
,
...);
/* Store a table record */
bool
schema_table_store_record
(
THD
*
thd
,
TABLE
*
table
);
/*
The thread pool must be able to execute statements using the connection
state in THD object. This is the main objective of the thread pool to
schedule the start of these commands.
*/
bool
do_command
(
THD
*
thd
);
/*
The thread pool requires an interface to the connection logic in the
MySQL Server since the thread pool will maintain the event logic on
the TCP connection of the MySQL Server. Thus new connections, dropped
connections will be discovered by the thread pool and it needs to
ensure that the proper MySQL Server logic attached to these events is
executed.
*/
/* Set up connection thread before use as execution thread */
bool
setup_connection_thread_globals
(
THD
*
thd
);
/* Prepare connection as part of connection set-up */
bool
thd_prepare_connection
(
THD
*
thd
);
/* Release auditing before executing statement */
void
mysql_audit_release
(
THD
*
thd
);
/* Check if connection is still alive */
bool
thd_is_connection_alive
(
THD
*
thd
);
/* Close connection with possible error code */
void
close_connection
(
THD
*
thd
,
uint
errcode
);
/* Destroy THD object */
void
delete_thd
(
THD
*
thd
);
/*
thread_created is maintained by thread pool when activated since
user threads are created by the thread pool (and also special
threads to maintain the thread pool). This is done through
inc_thread_created.
max_connections is needed to calculate the maximum number of threads
that is allowed to be started by the thread pool. The method
get_max_connections() gets reference to this variable.
connection_attrib is the thread attributes for connection threads,
the method get_connection_attrib provides a reference to these
attributes.
*/
void
inc_thread_created
(
void
);
ulong
get_max_connections
(
void
);
pthread_attr_t
*
get_connection_attrib
(
void
);
#endif
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