Move a misplaced comment.
Approved by: markm/mentor (implicit), re/blanket libthr
This commit is contained in:
parent
10eeb9990b
commit
94215f2da0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user