summaryrefslogtreecommitdiff
path: root/TSRM/TSRM.c
diff options
context:
space:
mode:
Diffstat (limited to 'TSRM/TSRM.c')
-rw-r--r--TSRM/TSRM.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/TSRM/TSRM.c b/TSRM/TSRM.c
index 7914c72943..0edba20248 100644
--- a/TSRM/TSRM.c
+++ b/TSRM/TSRM.c
@@ -249,7 +249,6 @@ TSRM_API void *ts_resource_ex(ts_rsrc_id id, THREAD_T *th_id)
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 {
@@ -261,7 +260,6 @@ TSRM_API void *ts_resource_ex(ts_rsrc_id id, THREAD_T *th_id)
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;