Loading include/my_global.h +1 −4 Original line number Diff line number Diff line Loading @@ -348,10 +348,7 @@ int __void__; #endif /* Define some useful general macros */ #if defined(__cplusplus) && defined(__GNUC__) #define max(a, b) ((a) >? (b)) #define min(a, b) ((a) <? (b)) #elif !defined(max) #if !defined(max) #define max(a, b) ((a) > (b) ? (a) : (b)) #define min(a, b) ((a) < (b) ? (a) : (b)) #endif Loading include/my_pthread.h +8 −8 Original line number Diff line number Diff line Loading @@ -28,14 +28,6 @@ extern "C" { #endif /* __cplusplus */ /* Thread library */ #define THD_LIB_OTHER 1 #define THD_LIB_NPTL 2 #define THD_LIB_LT 4 extern uint thd_lib_detected; #if defined(__WIN__) || defined(OS2) #ifdef OS2 Loading Loading @@ -684,6 +676,14 @@ extern struct st_my_thread_var *_my_thread_var(void) __attribute__ ((const)); */ extern pthread_t shutdown_th, main_th, signal_th; /* Which kind of thread library is in use */ #define THD_LIB_OTHER 1 #define THD_LIB_NPTL 2 #define THD_LIB_LT 4 extern uint thd_lib_detected; /* statistics_xxx functions are for not essential statistic */ #ifndef thread_safe_increment Loading include/thr_alarm.h +2 −0 Original line number Diff line number Diff line Loading @@ -93,6 +93,8 @@ typedef struct st_alarm { my_bool malloced; } ALARM; extern uint thr_client_alarm; #define thr_alarm_init(A) (*(A))=0 #define thr_alarm_in_use(A) (*(A)!= 0) void init_thr_alarm(uint max_alarm); Loading mysys/default.c +2 −2 Original line number Diff line number Diff line Loading @@ -282,7 +282,7 @@ static int search_default_file(DYNAMIC_ARRAY *args, MEM_ROOT *alloc, { char **ext; for (ext= (char**) f_extensions; *ext; *ext++) for (ext= (char**) f_extensions; *ext; ext++) { int error; if ((error= search_default_file_with_ext(args, alloc, dir, *ext, Loading Loading @@ -543,7 +543,7 @@ void print_defaults(const char *conf_file, const char **groups) #endif for (dirs=default_directories ; *dirs; dirs++) { for (ext= (char**) f_extensions; *ext; *ext++) for (ext= (char**) f_extensions; *ext; ext++) { const char *pos; char *end; Loading mysys/my_pthread.c +3 −1 Original line number Diff line number Diff line Loading @@ -322,7 +322,9 @@ void *sigwait_thread(void *set_arg) sigaction(i, &sact, (struct sigaction*) 0); } } sigaddset(set, thd_lib_detected == THD_LIB_LT ? SIGALRM : SIGUSR1); /* Ensure that init_thr_alarm() is called */ DBUG_ASSERT(thr_client_alarm); sigaddset(set, thr_client_alarm); pthread_sigmask(SIG_UNBLOCK,(sigset_t*) set,(sigset_t*) 0); alarm_thread=pthread_self(); /* For thr_alarm */ Loading Loading
include/my_global.h +1 −4 Original line number Diff line number Diff line Loading @@ -348,10 +348,7 @@ int __void__; #endif /* Define some useful general macros */ #if defined(__cplusplus) && defined(__GNUC__) #define max(a, b) ((a) >? (b)) #define min(a, b) ((a) <? (b)) #elif !defined(max) #if !defined(max) #define max(a, b) ((a) > (b) ? (a) : (b)) #define min(a, b) ((a) < (b) ? (a) : (b)) #endif Loading
include/my_pthread.h +8 −8 Original line number Diff line number Diff line Loading @@ -28,14 +28,6 @@ extern "C" { #endif /* __cplusplus */ /* Thread library */ #define THD_LIB_OTHER 1 #define THD_LIB_NPTL 2 #define THD_LIB_LT 4 extern uint thd_lib_detected; #if defined(__WIN__) || defined(OS2) #ifdef OS2 Loading Loading @@ -684,6 +676,14 @@ extern struct st_my_thread_var *_my_thread_var(void) __attribute__ ((const)); */ extern pthread_t shutdown_th, main_th, signal_th; /* Which kind of thread library is in use */ #define THD_LIB_OTHER 1 #define THD_LIB_NPTL 2 #define THD_LIB_LT 4 extern uint thd_lib_detected; /* statistics_xxx functions are for not essential statistic */ #ifndef thread_safe_increment Loading
include/thr_alarm.h +2 −0 Original line number Diff line number Diff line Loading @@ -93,6 +93,8 @@ typedef struct st_alarm { my_bool malloced; } ALARM; extern uint thr_client_alarm; #define thr_alarm_init(A) (*(A))=0 #define thr_alarm_in_use(A) (*(A)!= 0) void init_thr_alarm(uint max_alarm); Loading
mysys/default.c +2 −2 Original line number Diff line number Diff line Loading @@ -282,7 +282,7 @@ static int search_default_file(DYNAMIC_ARRAY *args, MEM_ROOT *alloc, { char **ext; for (ext= (char**) f_extensions; *ext; *ext++) for (ext= (char**) f_extensions; *ext; ext++) { int error; if ((error= search_default_file_with_ext(args, alloc, dir, *ext, Loading Loading @@ -543,7 +543,7 @@ void print_defaults(const char *conf_file, const char **groups) #endif for (dirs=default_directories ; *dirs; dirs++) { for (ext= (char**) f_extensions; *ext; *ext++) for (ext= (char**) f_extensions; *ext; ext++) { const char *pos; char *end; Loading
mysys/my_pthread.c +3 −1 Original line number Diff line number Diff line Loading @@ -322,7 +322,9 @@ void *sigwait_thread(void *set_arg) sigaction(i, &sact, (struct sigaction*) 0); } } sigaddset(set, thd_lib_detected == THD_LIB_LT ? SIGALRM : SIGUSR1); /* Ensure that init_thr_alarm() is called */ DBUG_ASSERT(thr_client_alarm); sigaddset(set, thr_client_alarm); pthread_sigmask(SIG_UNBLOCK,(sigset_t*) set,(sigset_t*) 0); alarm_thread=pthread_self(); /* For thr_alarm */ Loading