]> granicus.if.org Git - php/commitdiff
MFH
authorZeev Suraski <zeev@php.net>
Sun, 20 Mar 2005 09:04:03 +0000 (09:04 +0000)
committerZeev Suraski <zeev@php.net>
Sun, 20 Mar 2005 09:04:03 +0000 (09:04 +0000)
TSRM/TSRM.c

index ac2cca9321298ad8f02a39844e244f53c1746bad..c4a710f19dd0f4256898b1b8355071c0d6c12baf 100644 (file)
@@ -285,11 +285,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);
 }