summaryrefslogtreecommitdiff
path: root/create.c
diff options
context:
space:
mode:
Diffstat (limited to 'create.c')
-rw-r--r--create.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/create.c b/create.c
index f477585..a0b8d02 100644
--- a/create.c
+++ b/create.c
@@ -72,7 +72,7 @@ pthread_create(pthread_t *thread,
ret = _pthread_new_thread(&new_thread);
- pthread_mutex_lock(&_pthread_table_mutex);
+ pthread_mutex_unlock(&_pthread_table_mutex);
/* END CRITICAL SECTION */
if (ret == 0)
@@ -134,7 +134,7 @@ pthread_create(pthread_t *thread,
/* Remove the failed thread entry. */
_pthread_delete_thread(new_thread);
- pthread_mutex_lock(&_pthread_table_mutex);
+ pthread_mutex_unlock(&_pthread_table_mutex);
/* END CRITICAL SECTION */
}