Move a misplaced comment.

Approved by:	markm/mentor (implicit), re/blanket libthr
This commit is contained in:
mtm 2003-05-20 18:48:41 +00:00
parent 10eeb9990b
commit 94215f2da0

View File

@ -104,7 +104,6 @@ _pthread_join(pthread_t pthread, void **thread_return)
ret = ENOTSUP;
goto out;
/* Check if the thread is not dead: */
}
/*
* Unlock the garbage collector mutex, now that the garbage collector
@ -113,6 +112,7 @@ _pthread_join(pthread_t pthread, void **thread_return)
if (pthread_mutex_unlock(&_gc_mutex) != 0)
PANIC("Cannot lock gc mutex");
/* Check if the thread is not dead: */
if (pthread->state != PS_DEAD) {
/* Set the running thread to be the joiner: */
pthread->joiner = curthread;