summaryrefslogtreecommitdiff
path: root/TSRM
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2005-03-20 09:03:40 (GMT)
committerZeev Suraski <zeev@php.net>2005-03-20 09:03:40 (GMT)
commit18f4a3f9ffcf4f11a9eb07245439305afca2e4ce (patch)
tree368ee053e575c4d53193cee0bc32ade6c9ae97dc /TSRM
parent4d46234912e65d654bfb76a6c118e8d6e44e0380 (diff)
downloadphp-18f4a3f9ffcf4f11a9eb07245439305afca2e4ce.tar.gz
Merge
Diffstat (limited to 'TSRM')
-rw-r--r--TSRM/TSRM.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/TSRM/TSRM.c b/TSRM/TSRM.c
index 1e510d1..4d7e80e 100644
--- a/TSRM/TSRM.c
+++ b/TSRM/TSRM.c
@@ -288,11 +288,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);
}