diff options
author | Marc Alff <marc.alff@sun.com> | 2009-11-17 19:31:40 -0700 |
---|---|---|
committer | Marc Alff <marc.alff@sun.com> | 2009-11-17 19:31:40 -0700 |
commit | 3ff74fb5fadc1cae7718216b47a8afc6b712e6f1 (patch) | |
tree | 23343f6c4530860c422afcfc2c9528a8e335578a /mysys/my_thr_init.c | |
parent | b16be935d418897051b72f0a4b1ff272a46446a7 (diff) | |
download | mariadb-git-3ff74fb5fadc1cae7718216b47a8afc6b712e6f1.tar.gz |
WL#3230 concurrent hash
Backport from 6.0.14 to 5.6.0
Original code from Sergei Golubchik
Diffstat (limited to 'mysys/my_thr_init.c')
-rw-r--r-- | mysys/my_thr_init.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mysys/my_thr_init.c b/mysys/my_thr_init.c index b2972faf0f8..ba59c483012 100644 --- a/mysys/my_thr_init.c +++ b/mysys/my_thr_init.c @@ -284,6 +284,9 @@ my_bool my_thread_init(void) pthread_cond_init(&tmp->suspend, NULL); tmp->init= 1; + tmp->stack_ends_here= (char*)&tmp + + STACK_DIRECTION * (long)my_thread_stack_size; + pthread_mutex_lock(&THR_LOCK_threads); tmp->id= ++thread_id; ++THR_thread_count; |