summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <hf@deer.(none)>2003-12-10 18:41:11 +0400
committerunknown <hf@deer.(none)>2003-12-10 18:41:11 +0400
commitc49c88a514a5ec7da6e74775f5f6527ed0d6fc3a (patch)
treeed58c4e36b6360e6704606af8324bc84c84c1293
parent4c00978b43921525d59f52da1ad13b516da16f1e (diff)
parent007d2e5a6bce0911dc1ee3184b62ea53a777cac0 (diff)
downloadmariadb-git-c49c88a514a5ec7da6e74775f5f6527ed0d6fc3a.tar.gz
Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-4.0
into deer.(none):/home/hf/work/mysql-4.0.1890
-rw-r--r--mysys/my_thr_init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mysys/my_thr_init.c b/mysys/my_thr_init.c
index 9f64e9dcb60..3196256facc 100644
--- a/mysys/my_thr_init.c
+++ b/mysys/my_thr_init.c
@@ -157,6 +157,9 @@ my_bool my_thread_init(void)
tmp= &THR_KEY_mysys;
#endif
tmp->id= ++thread_id;
+#if defined(__WIN__) && defined(EMBEDDED_LIBRARY)
+ tmp->thread_self= (pthread_t)getpid();
+#endif
pthread_mutex_init(&tmp->mutex,MY_MUTEX_INIT_FAST);
pthread_cond_init(&tmp->suspend, NULL);
tmp->init= 1;