]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Revise the unlock order in _pthread_join(). Also, if the joined
authorMike Makonnen <mtm@FreeBSD.org>
Mon, 26 May 2003 00:28:49 +0000 (00:28 +0000)
committerMike Makonnen <mtm@FreeBSD.org>
Mon, 26 May 2003 00:28:49 +0000 (00:28 +0000)
commit2387af9962542480b8c78c8d7f072d41ab8979d6
treedb7f7c2fddbe575b6d97a6bdca6e04924e0f8eb6
parent12c407a42419514164b8f82ef202d73f6f7c9a09
Revise the unlock order in _pthread_join(). Also, if the joined
thread is not dead, the join loop is guaranteed to execute at least
once, so there is no need to pick up the thread list lock after
we return from suspenstion only to release it after the loop.

Approved by: re/blanket libthr
lib/libthr/thread/thr_join.c