From fe15677f4e2469cca6937da8037df65a76df364d Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Sun, 20 Mar 2005 09:03:07 +0000 Subject: [PATCH] Fix the lock (the other patch would probably also work, but it's more error prone and it's better to be on the safe side) --- TSRM/TSRM.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TSRM/TSRM.c b/TSRM/TSRM.c index 2fbf796ef6..e9ae95d8ef 100644 --- a/TSRM/TSRM.c +++ b/TSRM/TSRM.c @@ -296,11 +296,11 @@ static void allocate_new_resource(tsrm_tls_entry **thread_resources_ptr, THREAD_ } } - tsrm_mutex_unlock(tsmm_mutex); - if (tsrm_new_thread_end_handler) { tsrm_new_thread_end_handler(thread_id, &((*thread_resources_ptr)->storage)); } + + tsrm_mutex_unlock(tsmm_mutex); } -- 2.50.1