diff options
author | Andi Gutmans <andi@php.net> | 2001-04-05 14:00:54 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2001-04-05 14:00:54 +0000 |
commit | a943751310c376a26b3c36bdbfc78f62056e49d5 (patch) | |
tree | ae738dea73e2c470c971128de8cd2d4038676049 /TSRM/TSRM.c | |
parent | 81d932c9d1e14afac49238f8f4ae0b5676bdc3f9 (diff) | |
download | php-git-a943751310c376a26b3c36bdbfc78f62056e49d5.tar.gz |
- Lock the whole thing for now in order not to have a race condition.
It shouldn't effect performance too much because usually threads are
reused a few times before they are nuked by the web server, at least
under IIS and Zeus.
Diffstat (limited to 'TSRM/TSRM.c')
-rw-r--r-- | TSRM/TSRM.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/TSRM/TSRM.c b/TSRM/TSRM.c index 4425036ea7..cef4addab0 100644 --- a/TSRM/TSRM.c +++ b/TSRM/TSRM.c @@ -337,8 +337,6 @@ void ts_free_thread(void) while (thread_resources) { if (thread_resources->thread_id == thread_id) { - tsrm_mutex_unlock(tsmm_mutex); - for (i=0; i<thread_resources->count; i++) { if (resource_types_table[i].dtor) { resource_types_table[i].dtor(thread_resources->storage[i]); @@ -347,7 +345,6 @@ void ts_free_thread(void) for (i=0; i<thread_resources->count; i++) { free(thread_resources->storage[i]); } - tsrm_mutex_lock(tsmm_mutex); free(thread_resources->storage); if (last) { last->next = thread_resources->next; |