summaryrefslogtreecommitdiff
path: root/sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'sync.c')
-rw-r--r--sync.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sync.c b/sync.c
index b2b8323..069d10a 100644
--- a/sync.c
+++ b/sync.c
@@ -83,7 +83,7 @@ pthread_join(pthread_t thread, void ** valueptr)
thread->join_count++;
- pthread_mutex_lock(&_pthread_table_mutex);
+ pthread_mutex_unlock(&_pthread_table_mutex);
/* END CRITICAL SECTION */
/* CANCELATION POINT */
@@ -138,7 +138,7 @@ pthread_join(pthread_t thread, void ** valueptr)
ret = _pthread_delete_thread(thread);
}
- pthread_mutex_lock(&_pthread_table_mutex);
+ pthread_mutex_unlock(&_pthread_table_mutex);
/* END CRITICAL SECTION */
return ret;