summaryrefslogtreecommitdiff
path: root/include/my_pthread.h
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2001-12-20 06:14:11 +0200
committerunknown <monty@hundin.mysql.fi>2001-12-20 06:14:11 +0200
commitc23e5a830cd9d7fe5a14e6e971fddd32cd0fad69 (patch)
tree6238391b82cf68076a5dea6dd2e3c8c5c27473cd /include/my_pthread.h
parent7a8ce131289d31e8541e3e4f9085aefd7257b81d (diff)
downloadmariadb-git-c23e5a830cd9d7fe5a14e6e971fddd32cd0fad69.tar.gz
Fix insert delated + query cache.
Fix pthread_mutex_trylock on HPUX (needed for query cache). include/my_pthread.h: Fixed mutex problem with pthread_mutex_trylock on HPUX. mysql-test/mysql-test-run.sh: Wait for .pid file instead of .sock, because .pid is created later. mysql-test/r/query_cache.result: Test insert delated + query cache mysql-test/t/query_cache.test: Test insert delated + query cache mysys/my_pthread.c: Fixed mutex problem with pthread_mutex_trylock on HPUX. sql/repl_failsafe.cc: Safety sql/sql_insert.cc: Fix insert delated + query cache
Diffstat (limited to 'include/my_pthread.h')
-rw-r--r--include/my_pthread.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/my_pthread.h b/include/my_pthread.h
index e6cd039c80e..4ca42339897 100644
--- a/include/my_pthread.h
+++ b/include/my_pthread.h
@@ -448,8 +448,10 @@ struct hostent *my_gethostbyname_r(const char *name,
#if defined(HPUX) && !defined(DONT_REMAP_PTHREAD_FUNCTIONS)
#define pthread_cond_timedwait(a,b,c) my_pthread_cond_timedwait((a),(b),(c))
+#define pthread_mutex_trylock(a) my_pthread_mutex_trylock((a))
int my_pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex,
struct timespec *abstime);
+int my_pthread_mutex_trylock(pthread_mutex_t *mutex);
#endif
/* safe_mutex adds checking to mutex for easier debugging */