From c49d7f489106792e4924dfc31657abe4ab0d2d79 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 27 Apr 2005 13:29:37 +0200 Subject: Bug #9954 mysql-4.1.11/cmd-line-utils/libedit/makelist.sh is not portable - Reverted removal of errorcheck mutex initialise, used in safe_mutex_init. include/my_pthread.h: Reverted the removal of errorcheck mutex initializer mysys/my_thr_init.c: Reverted the removal of errorcheck mutex initializer Add destruction of mutex initializer --- include/my_pthread.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/my_pthread.h') diff --git a/include/my_pthread.h b/include/my_pthread.h index b5b282238ba..fde62655c5f 100644 --- a/include/my_pthread.h +++ b/include/my_pthread.h @@ -612,6 +612,12 @@ extern pthread_mutexattr_t my_fast_mutexattr; #else #define MY_MUTEX_INIT_FAST NULL #endif +#ifdef PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP +extern pthread_mutexattr_t my_errorcheck_mutexattr; +#define MY_MUTEX_INIT_ERRCHK &my_errorcheck_mutexattr +#else +#define MY_MUTEX_INIT_ERRCHK NULL +#endif extern my_bool my_thread_global_init(void); extern void my_thread_global_end(void); -- cgit v1.2.1