From owner-p4-projects@FreeBSD.ORG Fri Dec 31 15:10:30 2004 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id C02D116A4D0; Fri, 31 Dec 2004 15:10:29 +0000 (GMT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9608D16A4CE for ; Fri, 31 Dec 2004 15:10:29 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 84DCA43D39 for ; Fri, 31 Dec 2004 15:10:29 +0000 (GMT) (envelope-from davidxu@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id iBVFATEm009813 for ; Fri, 31 Dec 2004 15:10:29 GMT (envelope-from davidxu@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id iBVFATYm009810 for perforce@freebsd.org; Fri, 31 Dec 2004 15:10:29 GMT (envelope-from davidxu@freebsd.org) Date: Fri, 31 Dec 2004 15:10:29 GMT Message-Id: <200412311510.iBVFATYm009810@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to davidxu@freebsd.org using -f From: David Xu To: Perforce Change Reviews Subject: PERFORCE change 67995 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Dec 2004 15:10:30 -0000 http://perforce.freebsd.org/chv.cgi?CH=67995 Change 67995 by davidxu@davidxu_tiger on 2004/12/31 15:10:19 only check PS_DEAD is enough, I hope the state field will go away. Affected files ... .. //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_setschedparam.c#3 edit Differences ... ==== //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_setschedparam.c#3 (text+ko) ==== @@ -64,9 +64,7 @@ * its priority: */ THR_THREAD_LOCK(curthread, pthread); - if ((pthread->state == PS_DEAD) || - (pthread->state == PS_DEADLOCK) || - ((pthread->flags & THR_FLAGS_EXITING) != 0)) { + if (pthread->state == PS_DEAD) { THR_THREAD_UNLOCK(curthread, pthread); _thr_ref_delete(curthread, pthread); return (ESRCH);