if (!thread_resources) {
allocate_new_resource(&tsrm_tls_table[hash_value], thread_id);
+ tsrm_mutex_unlock(tsmm_mutex);
return ts_resource(id);
/* thread_resources = tsrm_tls_table[hash_value]; */
} else {
thread_resources = thread_resources->next;
} else {
allocate_new_resource(&thread_resources->next, thread_id);
+ tsrm_mutex_unlock(tsmm_mutex);
return ts_resource(id);
/*
* thread_resources = thread_resources->next;