diff options
author | monty@donna.mysql.com <> | 2000-09-20 19:37:35 +0300 |
---|---|---|
committer | monty@donna.mysql.com <> | 2000-09-20 19:37:35 +0300 |
commit | 80d200e18b2b8d4e3f5528895f97eee49aede9a5 (patch) | |
tree | 2c87a6bf075e8c202b7802333c934a5cddb7e747 /mysys/my_winthread.c | |
parent | 004191bb1cdb46f81c9100ef0d10c3a991e0495b (diff) | |
parent | 830d30896066b325d1ee0769ca116efdaef602f2 (diff) | |
download | mariadb-git-80d200e18b2b8d4e3f5528895f97eee49aede9a5.tar.gz |
Merge work:/home/bk/mysql into donna.mysql.com:/home/my/bk/mysql
Diffstat (limited to 'mysys/my_winthread.c')
-rw-r--r-- | mysys/my_winthread.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 */ } |