diff options
author | unknown <istruewing@chilla.local> | 2007-02-01 10:19:22 +0100 |
---|---|---|
committer | unknown <istruewing@chilla.local> | 2007-02-01 10:19:22 +0100 |
commit | 8772cb168b43528a2fcef03ece3078f58cb34d40 (patch) | |
tree | 022725674254e6cf9a1dda24210e53fd3dc844fd /include | |
parent | ad7a4ebbe31d3bd6113e5f26107db6fffaddea1c (diff) | |
parent | 62fdcb54a7e03282b19b8661e0f78e766e3b2a36 (diff) | |
download | mariadb-git-8772cb168b43528a2fcef03ece3078f58cb34d40.tar.gz |
Merge chilla.local:/home/mydev/mysql-4.1-axmrg
into chilla.local:/home/mydev/mysql-5.0-axmrg
include/my_global.h:
Auto merged
include/thr_alarm.h:
Auto merged
mysys/my_pthread.c:
Auto merged
mysys/thr_alarm.c:
Auto merged
include/my_pthread.h:
Manual merged
mysys/default.c:
Manual merged
mysys/my_thr_init.c:
Manual merged
sql/mysqld.cc:
Manual merged
Diffstat (limited to 'include')
-rw-r--r-- | include/my_global.h | 5 | ||||
-rw-r--r-- | include/my_pthread.h | 18 | ||||
-rw-r--r-- | include/thr_alarm.h | 2 |
3 files changed, 13 insertions, 12 deletions
diff --git a/include/my_global.h b/include/my_global.h index 306aabd15fe..b91ff8a9e5b 100644 --- a/include/my_global.h +++ b/include/my_global.h @@ -454,10 +454,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 diff --git a/include/my_pthread.h b/include/my_pthread.h index cf6ae8cd6a1..6ebde2f119c 100644 --- a/include/my_pthread.h +++ b/include/my_pthread.h @@ -30,14 +30,6 @@ extern "C" { #define EXTERNC #endif /* __cplusplus */ -/* Thread library */ - -#define THD_LIB_OTHER 1 -#define THD_LIB_NPTL 2 -#define THD_LIB_LT 4 - -extern uint thd_lib_detected; - /* BUG#24507: Race conditions inside current NPTL pthread_exit() implementation. @@ -771,6 +763,16 @@ extern uint my_thread_end_wait_time; Keep track of shutdown,signal, and main threads so that my_end() will not report errors with them */ + +/* 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; +extern uint thr_client_alarm; + /* statistics_xxx functions are for not essential statistic */ #ifndef thread_safe_increment diff --git a/include/thr_alarm.h b/include/thr_alarm.h index fb7b9762b10..4127c9cb35e 100644 --- a/include/thr_alarm.h +++ b/include/thr_alarm.h @@ -92,6 +92,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); |