For Programmers: Free Programming Magazines  


Home > Archive > PHP Zend Engine > March 2005 > cvs: TSRM(PHP_5_0) / TSRM.c









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: TSRM(PHP_5_0) / TSRM.c
Zeev Suraski

2005-03-20, 8:55 am

zeev Sun Mar 20 04:03:08 2005 EDT

Modified files: (Branch: PHP_5_0)
/TSRM TSRM.c
Log:
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)


http://cvs.php.net/diff.php/TSRM/TS...2=1.61.2.2&ty=u
Index: TSRM/TSRM.c
diff -u TSRM/TSRM.c:1.61.2.1 TSRM/TSRM.c:1.61.2.2
--- TSRM/TSRM.c:1.61.2.1 Fri Mar 11 06:13:03 2005
+++ TSRM/TSRM.c Sun Mar 20 04:03:07 2005
@@ -296,11 +296,11 @@
}
}

- 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);
}


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com