From 244eced1a797f15dd0ebe0a58b6c054c26b4fa28 Mon Sep 17 00:00:00 2001 From: Marc Alff Date: Tue, 17 Nov 2009 19:31:40 -0700 Subject: WL#3230 concurrent hash Backport from 6.0.14 to 5.6.0 Original code from Sergei Golubchik --- mysys/my_thr_init.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mysys/my_thr_init.c') 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; -- cgit v1.2.1