summaryrefslogtreecommitdiff
path: root/include/my_pthread.h
diff options
context:
space:
mode:
authormsvensson@neptunus.(none) <>2005-04-27 09:59:12 +0200
committermsvensson@neptunus.(none) <>2005-04-27 09:59:12 +0200
commitf3c72cc8914f309c45f35fe857348989f165e8f0 (patch)
treee08fea906b88d0aa8efd72835e8cea713d2ce9cd /include/my_pthread.h
parent71c7c0d341b41d18127cd91bd1ae293eb4af8240 (diff)
downloadmariadb-git-f3c72cc8914f309c45f35fe857348989f165e8f0.tar.gz
Bug #9954 mysql-4.1.11/cmd-line-utils/libedit/makelist.sh is not portable
- Changed makelist.sh - Bump up required version of autoconf - Use new style to init mutex in my_thr_init
Diffstat (limited to 'include/my_pthread.h')
-rw-r--r--include/my_pthread.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/include/my_pthread.h b/include/my_pthread.h
index f8cd3e0de71..b5b282238ba 100644
--- a/include/my_pthread.h
+++ b/include/my_pthread.h
@@ -604,19 +604,13 @@ extern int my_rw_trywrlock(my_rw_lock_t *);
#define pthread_attr_setstacksize(A,B) pthread_dummy(0)
#endif
-/* Define mutex types */
+/* Define mutex types, see my_thr_init.c */
#define MY_MUTEX_INIT_SLOW NULL
-#define MY_MUTEX_INIT_FAST NULL
-#define MY_MUTEX_INIT_ERRCHK NULL
#ifdef PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP
extern pthread_mutexattr_t my_fast_mutexattr;
-#undef MY_MUTEX_INIT_FAST
#define MY_MUTEX_INIT_FAST &my_fast_mutexattr
-#endif
-#ifdef PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP
-extern pthread_mutexattr_t my_errchk_mutexattr;
-#undef MY_INIT_MUTEX_ERRCHK
-#define MY_INIT_MUTEX_ERRCHK &my_errchk_mutexattr
+#else
+#define MY_MUTEX_INIT_FAST NULL
#endif
extern my_bool my_thread_global_init(void);