#include <my_global.h>#include <m_string.h>#include <my_pthread.h>#include <sys/types.h>#include <unistd.h>#include "portability.h"Include dependency graph for priv.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Defines | |
| #define | SERVER_DEFAULT_PORT 3306 |
| #define | DEFAULT_MONITORING_INTERVAL 20 |
| #define | DEFAULT_PORT 2273 |
| #define | LONG_TIMEOUT ((ulong) 3600L*24L*21L) |
Functions | |
| int | set_stacksize_n_create_thread (pthread_t *thread, pthread_attr_t *attr, void *(*start_routine)(void *), void *arg) |
Variables | |
| const int | MEM_ROOT_BLOCK_SIZE = 512 |
| const int | MAX_OPTION_LEN = 1024 |
| const int | MAX_OPTION_STR_LEN = 2 + MAX_OPTION_LEN + 1 + MAX_OPTION_LEN + 1 |
| const int | MAX_VERSION_LENGTH = 160 |
| const int | MAX_INSTANCE_NAME_SIZE = FN_REFLEN |
| pid_t | manager_pid |
| bool | linuxthreads |
| const LEX_STRING | mysqlmanager_version |
| const unsigned char | protocol_version |
| unsigned long | net_buffer_length |
| unsigned long | max_allowed_packet |
| unsigned long | net_read_timeout |
| unsigned long | net_write_timeout |
| unsigned long | net_retry_count |
| unsigned int | test_flags |
| unsigned long | bytes_sent |
| unsigned long | bytes_received |
| unsigned long | mysqld_net_retry_count |
| unsigned long | open_files_limit |
| #define SERVER_DEFAULT_PORT 3306 |
| int set_stacksize_n_create_thread | ( | pthread_t * | thread, | |
| pthread_attr_t * | attr, | |||
| void *(*)(void *) | start_routine, | |||
| void * | arg | |||
| ) |
Definition at line 72 of file priv.cc.
References IM_THREAD_STACK_SIZE, pthread_attr_setstacksize, and PTHREAD_STACK_MIN.
Referenced by Listener_thread::handle_new_mysql_connection(), and manager().
00074 { 00075 int rc= 0; 00076 00077 #ifndef __WIN__ 00078 #ifndef PTHREAD_STACK_MIN 00079 #define PTHREAD_STACK_MIN 32768 00080 #endif 00081 /* 00082 Set stack size to be safe on the platforms with too small 00083 default thread stack. 00084 */ 00085 rc= pthread_attr_setstacksize(attr, 00086 (size_t) (PTHREAD_STACK_MIN + 00087 IM_THREAD_STACK_SIZE)); 00088 #endif 00089 if (!rc) 00090 rc= pthread_create(thread, attr, start_routine, arg); 00091 return rc; 00092 }
Here is the caller graph for this function:

| unsigned long bytes_received |
Definition at line 51 of file mysqlbinlog.cc.
| unsigned long bytes_sent |
Definition at line 51 of file mysqlbinlog.cc.
| pid_t manager_pid |
| unsigned long max_allowed_packet |
Definition at line 69 of file libmysql.c.
| const int MAX_INSTANCE_NAME_SIZE = FN_REFLEN |
| const int MAX_OPTION_LEN = 1024 |
Definition at line 41 of file priv.h.
Referenced by Instance_options::complete_initialization(), create_instance_in_file(), parse_option(), and Instance_map::process_one_option().
| const int MAX_OPTION_STR_LEN = 2 + MAX_OPTION_LEN + 1 + MAX_OPTION_LEN + 1 |
Definition at line 47 of file priv.h.
Referenced by Instance_options::complete_initialization(), and create_instance_in_file().
| const int MAX_VERSION_LENGTH = 160 |
Definition at line 49 of file priv.h.
Referenced by Mysql_connection_thread::check_connection(), Instance_options::fill_instance_version(), Show_instance_status::write_data(), and Show_instance_status::write_header().
| const int MEM_ROOT_BLOCK_SIZE = 512 |
| unsigned long mysqld_net_retry_count |
Definition at line 52 of file mysqlbinlog.cc.
Definition at line 46 of file priv.cc.
Referenced by Mysql_connection_thread::check_connection(), and version().
| unsigned long net_buffer_length |
Definition at line 68 of file libmysql.c.
| unsigned long net_read_timeout |
Definition at line 70 of file libmysql.c.
| unsigned long net_retry_count |
| unsigned long net_write_timeout |
Definition at line 71 of file libmysql.c.
| unsigned long open_files_limit |
Definition at line 53 of file mysqlbinlog.cc.
| const unsigned char protocol_version |
| unsigned int test_flags |
Definition at line 54 of file mysqlbinlog.cc.
1.4.7

