summaryrefslogtreecommitdiff
path: root/lib/libthr/thread/thr_join.c
diff options
context:
space:
mode:
authorMike Makonnen <mtm@FreeBSD.org>2003-05-29 20:46:53 +0000
committerMike Makonnen <mtm@FreeBSD.org>2003-05-29 20:46:53 +0000
commitb3cdf7ae2eb9a89e6f906aad132866185cf4dfe8 (patch)
tree24627382282fb3a2ee03fe4390d9fac487628e88 /lib/libthr/thread/thr_join.c
parent981f4968f09101e148b2fd8f1389d087948bc00c (diff)
Notes
Diffstat (limited to 'lib/libthr/thread/thr_join.c')
-rw-r--r--lib/libthr/thread/thr_join.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_join.c b/lib/libthr/thread/thr_join.c
index 88a71f2c52ef..2a5433aeb80e 100644
--- a/lib/libthr/thread/thr_join.c
+++ b/lib/libthr/thread/thr_join.c
@@ -160,9 +160,9 @@ _pthread_join(pthread_t pthread, void **thread_return)
/* Make the thread collectable by the garbage collector. */
pthread->attr.flags |= PTHREAD_DETACHED;
_SPINUNLOCK(&pthread->lock);
+ THREAD_LIST_UNLOCK;
if (pthread_cond_signal(&_gc_cond) != 0)
PANIC("Cannot signal gc cond");
- THREAD_LIST_UNLOCK;
DEAD_LIST_UNLOCK;
}