From owner-cvs-src@FreeBSD.ORG Sun May 25 17:28:50 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3F3DD37B401; Sun, 25 May 2003 17:28:50 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D2C1843F3F; Sun, 25 May 2003 17:28:49 -0700 (PDT) (envelope-from mtm@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h4Q0Sn0U026294; Sun, 25 May 2003 17:28:49 -0700 (PDT) (envelope-from mtm@repoman.freebsd.org) Received: (from mtm@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h4Q0Snff026293; Sun, 25 May 2003 17:28:49 -0700 (PDT) Message-Id: <200305260028.h4Q0Snff026293@repoman.freebsd.org> From: Mike Makonnen Date: Sun, 25 May 2003 17:28:49 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libthr/thread thr_join.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 May 2003 00:28:50 -0000 mtm 2003/05/25 17:28:49 PDT FreeBSD src repository Modified files: lib/libthr/thread thr_join.c Log: 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 Revision Changes Path 1.6 +6 -12 src/lib/libthr/thread/thr_join.c