#include "priv.h"#include <my_global.h>#include <mysql_com.h>Include dependency graph for priv.cc:

Go to the source code of this file.
Defines | |
| #define | IM_THREAD_STACK_SIZE (64*1024) |
| #define | PTHREAD_STACK_MIN 32768 |
Functions | |
| int | set_stacksize_n_create_thread (pthread_t *thread, pthread_attr_t *attr, void *(*start_routine)(void *), void *arg) |
Variables | |
| pid_t | manager_pid |
| bool | linuxthreads |
| const LEX_STRING | mysqlmanager_version = { C_STRING_WITH_LEN("1.0-beta") } |
| const unsigned char | protocol_version = PROTOCOL_VERSION |
| unsigned long | net_buffer_length = 16384 |
| unsigned long | max_allowed_packet = 16384 |
| unsigned long | net_read_timeout = NET_WAIT_TIMEOUT |
| unsigned long | net_write_timeout = 60 |
| unsigned long | net_retry_count = 10 |
| unsigned int | test_flags = 0 |
| unsigned long | bytes_sent = 0L |
| unsigned long | bytes_received = 0L |
| unsigned long | mysqld_net_retry_count = 10L |
| unsigned long | open_files_limit |
| #define IM_THREAD_STACK_SIZE (64*1024) |
| #define PTHREAD_STACK_MIN 32768 |
Referenced by NdbThread_Create(), os_thread_create(), and set_stacksize_n_create_thread().
| 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 = 0L |
| unsigned long bytes_sent = 0L |
| pid_t manager_pid |
| unsigned long max_allowed_packet = 16384 |
| unsigned long mysqld_net_retry_count = 10L |
| const LEX_STRING mysqlmanager_version = { C_STRING_WITH_LEN("1.0-beta") } |
Definition at line 46 of file priv.cc.
Referenced by Mysql_connection_thread::check_connection(), and version().
| unsigned long net_buffer_length = 16384 |
| unsigned long net_read_timeout = NET_WAIT_TIMEOUT |
| unsigned long net_retry_count = 10 |
| unsigned long net_write_timeout = 60 |
| unsigned long open_files_limit |
| const unsigned char protocol_version = PROTOCOL_VERSION |
Definition at line 48 of file priv.cc.
Referenced by check_connection(), Mysql_connection_thread::check_connection(), create_field::init(), and main().
| unsigned int test_flags = 0 |
1.4.7

