From 91cea52c95180717172d927d3d2393c4d2b789f8 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 20 Sep 2000 19:37:07 +0300 Subject: Fix for SAFE_MUTEX on windows Docs/manual.texi: cleanup include/my_pthread.h: Fix for SAFEMUTEX under windows mysys/my_thr_init.c: Fix for SAFEMUTEX under windows mysys/my_winthread.c: Fix for SAFEMUTEX under windows mysys/thr_mutex.c: Fix for SAFEMUTEX under windows sql/mysqld.cc: Remove unused code sql/sql_table.cc: Fix filename comparison on Windows support-files/Makefile.am: Added magic file --- mysys/my_winthread.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mysys/my_winthread.c') diff --git a/mysys/my_winthread.c b/mysys/my_winthread.c index 7a1e1365325..e410121af98 100644 --- a/mysys/my_winthread.c +++ b/mysys/my_winthread.c @@ -48,13 +48,13 @@ static pthread_handler_decl(pthread_start,param) { pthread_handler func=((struct pthread_map *) param)->func; void *func_param=((struct pthread_map *) param)->param; - my_thread_init(); - pthread_mutex_lock(&THR_LOCK_thread); /* Wait for beingthread to return */ + my_thread_init(); /* Will always succeed in windows */ + pthread_mutex_lock(&THR_LOCK_thread); /* Wait for beginthread to return */ win_pthread_self=((struct pthread_map *) param)->pthreadself; pthread_mutex_unlock(&THR_LOCK_thread); - free((char*) param); + free((char*) param); /* Free param from create */ pthread_exit((*func)(func_param)); - return 0; + return 0; /* Safety */ } -- cgit v1.2.1