Commit 0e9a6468 authored by jani/jamppa@production.mysql.com's avatar jani/jamppa@production.mysql.com

Merge bk://localhost:5559

into  production.mysql.com:/usersnfs/jamppa/mysql-4.0
parents 0b4ee9e5 b3523e39
...@@ -683,6 +683,7 @@ extern pthread_t shutdown_th, main_th, signal_th; ...@@ -683,6 +683,7 @@ extern pthread_t shutdown_th, main_th, signal_th;
#define THD_LIB_LT 4 #define THD_LIB_LT 4
extern uint thd_lib_detected; extern uint thd_lib_detected;
extern uint thr_client_alarm;
/* statistics_xxx functions are for not essential statistic */ /* statistics_xxx functions are for not essential statistic */
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#endif #endif
uint thd_lib_detected; uint thd_lib_detected;
uint thr_client_alarm;
#ifndef my_pthread_setprio #ifndef my_pthread_setprio
void my_pthread_setprio(pthread_t thread_id,int prior) void my_pthread_setprio(pthread_t thread_id,int prior)
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include "mysys_priv.h" #include "mysys_priv.h"
#include <m_string.h> #include <m_string.h>
#include <signal.h>
#ifdef THREAD #ifdef THREAD
#ifdef USE_TLS #ifdef USE_TLS
...@@ -60,6 +61,10 @@ static uint get_thread_lib(void); ...@@ -60,6 +61,10 @@ static uint get_thread_lib(void);
my_bool my_thread_global_init(void) my_bool my_thread_global_init(void)
{ {
thd_lib_detected= get_thread_lib(); thd_lib_detected= get_thread_lib();
if (thd_lib_detected == THD_LIB_LT)
thr_client_alarm= SIGALRM;
else
thr_client_alarm= SIGUSR1;
if (pthread_key_create(&THR_KEY_mysys,0)) if (pthread_key_create(&THR_KEY_mysys,0))
{ {
......
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