diff options
author | unknown <msvensson@neptunus.(none)> | 2005-04-27 13:29:37 +0200 |
---|---|---|
committer | unknown <msvensson@neptunus.(none)> | 2005-04-27 13:29:37 +0200 |
commit | c49d7f489106792e4924dfc31657abe4ab0d2d79 (patch) | |
tree | 81ccd0af6825dd1f4dd60d2cbe49fad7c95c488d /include/my_pthread.h | |
parent | bb4df7df8d32f18a393c6ee4eb0963b1ac37755f (diff) | |
download | mariadb-git-c49d7f489106792e4924dfc31657abe4ab0d2d79.tar.gz |
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
Diffstat (limited to 'include/my_pthread.h')
-rw-r--r-- | include/my_pthread.h | 6 |
1 files changed, 6 insertions, 0 deletions
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); |