mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge serg.mylan:/usr/home/serg/Abk/mysql-5.0
into serg.mylan:/usr/home/serg/Abk/mysql-5.1 VC++Files/libmysqld/libmysqld.dsp: Auto merged VC++Files/sql/mysqld.dsp: Auto merged sql/ha_innodb.cc: Auto merged sql/ha_ndbcluster.cc: Auto merged sql/mysql_priv.h: Auto merged sql/mysqld.cc: Auto merged sql/repl_failsafe.cc: Auto merged sql/slave.cc: Auto merged sql/slave.h: Auto merged sql/sql_class.h: Auto merged sql/sql_insert.cc: Auto merged sql/sql_parse.cc: Auto merged storage/myisam/ft_nlq_search.c: Auto merged storage/myisam/myisamdef.h: Auto merged storage/myisam/sort.c: Auto merged storage/ndb/src/mgmsrv/Services.cpp: Auto merged storage/ndb/src/ndbapi/ndb_cluster_connection.cpp: Auto merged
This commit is contained in:
@ -593,25 +593,25 @@ struct st_VioSSLAcceptorFd *ssl_acceptor_fd;
|
||||
/* Function declarations */
|
||||
|
||||
static void start_signal_handler(void);
|
||||
static pthread_handler_decl(signal_hand, arg);
|
||||
pthread_handler_t signal_hand(void *arg);
|
||||
static void mysql_init_variables(void);
|
||||
static void get_options(int argc,char **argv);
|
||||
static void set_server_version(void);
|
||||
static int init_thread_environment();
|
||||
static char *get_relative_path(const char *path);
|
||||
static void fix_paths(void);
|
||||
extern "C" pthread_handler_decl(handle_connections_sockets,arg);
|
||||
extern "C" pthread_handler_decl(kill_server_thread,arg);
|
||||
pthread_handler_t handle_connections_sockets(void *arg);
|
||||
pthread_handler_t kill_server_thread(void *arg);
|
||||
static void bootstrap(FILE *file);
|
||||
static void close_server_sock();
|
||||
static bool read_init_file(char *file_name);
|
||||
#ifdef __NT__
|
||||
extern "C" pthread_handler_decl(handle_connections_namedpipes,arg);
|
||||
pthread_handler_t handle_connections_namedpipes(void *arg);
|
||||
#endif
|
||||
#ifdef HAVE_SMEM
|
||||
static pthread_handler_decl(handle_connections_shared_memory,arg);
|
||||
pthread_handler_t handle_connections_shared_memory(void *arg);
|
||||
#endif
|
||||
extern "C" pthread_handler_decl(handle_slave,arg);
|
||||
pthread_handler_t handle_slave(void *arg);
|
||||
static ulong find_bit_type(const char *x, TYPELIB *bit_lib);
|
||||
static void clean_up(bool print_message);
|
||||
static void clean_up_mutexes(void);
|
||||
@ -960,7 +960,7 @@ static void __cdecl kill_server(int sig_ptr)
|
||||
|
||||
|
||||
#if defined(USE_ONE_SIGNAL_HAND) || (defined(__NETWARE__) && defined(SIGNALS_DONT_BREAK_READ))
|
||||
extern "C" pthread_handler_decl(kill_server_thread,arg __attribute__((unused)))
|
||||
pthread_handler_t kill_server_thread(void *arg __attribute__((unused)))
|
||||
{
|
||||
my_thread_init(); // Initialize new thread
|
||||
kill_server(0);
|
||||
@ -2170,7 +2170,7 @@ static void start_signal_handler(void)
|
||||
/* This threads handles all signals and alarms */
|
||||
|
||||
/* ARGSUSED */
|
||||
static void *signal_hand(void *arg __attribute__((unused)))
|
||||
pthread_handler_t signal_hand(void *arg __attribute__((unused)))
|
||||
{
|
||||
sigset_t set;
|
||||
int sig;
|
||||
@ -2391,7 +2391,7 @@ int uname(struct utsname *a)
|
||||
}
|
||||
|
||||
|
||||
extern "C" pthread_handler_decl(handle_shutdown,arg)
|
||||
pthread_handler_t handle_shutdown(void *arg)
|
||||
{
|
||||
MSG msg;
|
||||
my_thread_init();
|
||||
@ -2420,7 +2420,7 @@ int STDCALL handle_kill(ulong ctrl_type)
|
||||
|
||||
|
||||
#ifdef OS2
|
||||
extern "C" pthread_handler_decl(handle_shutdown,arg)
|
||||
pthread_handler_t handle_shutdown(void *arg)
|
||||
{
|
||||
my_thread_init();
|
||||
|
||||
@ -3742,8 +3742,7 @@ inline void kill_broken_server()
|
||||
/* Handle new connections and spawn new process to handle them */
|
||||
|
||||
#ifndef EMBEDDED_LIBRARY
|
||||
extern "C" pthread_handler_decl(handle_connections_sockets,
|
||||
arg __attribute__((unused)))
|
||||
pthread_handler_t handle_connections_sockets(void *arg __attribute__((unused)))
|
||||
{
|
||||
my_socket sock,new_sock;
|
||||
uint error_count=0;
|
||||
@ -3957,7 +3956,7 @@ extern "C" pthread_handler_decl(handle_connections_sockets,
|
||||
|
||||
|
||||
#ifdef __NT__
|
||||
extern "C" pthread_handler_decl(handle_connections_namedpipes,arg)
|
||||
pthread_handler_t handle_connections_namedpipes(void *arg)
|
||||
{
|
||||
HANDLE hConnectedPipe;
|
||||
BOOL fConnected;
|
||||
@ -4043,17 +4042,16 @@ extern "C" pthread_handler_decl(handle_connections_namedpipes,arg)
|
||||
Thread of shared memory's service
|
||||
|
||||
SYNOPSIS
|
||||
pthread_handler_decl()
|
||||
handle_connections_shared_memory Thread handle
|
||||
handle_connections_shared_memory()
|
||||
arg Arguments of thread
|
||||
*/
|
||||
|
||||
#ifdef HAVE_SMEM
|
||||
pthread_handler_decl(handle_connections_shared_memory,arg)
|
||||
pthread_handler_t handle_connections_shared_memory(void *arg)
|
||||
{
|
||||
/* file-mapping object, use for create shared memory */
|
||||
HANDLE handle_connect_file_map= 0;
|
||||
char *handle_connect_map= 0; // pointer on shared memory
|
||||
char *handle_connect_map= 0; // pointer on shared memory
|
||||
HANDLE event_connect_answer= 0;
|
||||
ulong smem_buffer_length= shared_memory_buffer_length + 4;
|
||||
ulong connect_number= 1;
|
||||
|
Reference in New Issue
Block a user