summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2005-04-27 13:29:37 +0200
committerunknown <msvensson@neptunus.(none)>2005-04-27 13:29:37 +0200
commitffb4ff245446616f425023256e9fd07204bef000 (patch)
tree81ccd0af6825dd1f4dd60d2cbe49fad7c95c488d /include
parent78f89a729a962f7a88869a3d5e50ca493391b2a4 (diff)
downloadmariadb-git-ffb4ff245446616f425023256e9fd07204bef000.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')
-rw-r--r--include/my_pthread.h6
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);