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.
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]);
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;