From owner-cvs-src@FreeBSD.ORG Fri Jul 30 17:13:15 2004 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 7FEBC16A4CE; Fri, 30 Jul 2004 17:13:15 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7686D43D67; Fri, 30 Jul 2004 17:13:15 +0000 (GMT) (envelope-from mtm@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i6UHD0Um092549; Fri, 30 Jul 2004 17:13:00 GMT (envelope-from mtm@repoman.freebsd.org) Received: (from mtm@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i6UHD02p092548; Fri, 30 Jul 2004 17:13:00 GMT (envelope-from mtm) Message-Id: <200407301713.i6UHD02p092548@repoman.freebsd.org> From: Mike Makonnen Date: Fri, 30 Jul 2004 17:13:00 +0000 (UTC) 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_mutex.c thr_rwlock.c thr_setschedparam.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: Fri, 30 Jul 2004 17:13:15 -0000 mtm 2004-07-30 17:13:00 UTC FreeBSD src repository Modified files: lib/libthr/thread thr_mutex.c thr_rwlock.c thr_setschedparam.c Log: o Assertions to catch that stuff that shouldn't happen is not happening. o In the rwlock code: move a duplicated check inside an if..else to after the if...else clause. o When initializing a static rwlock move the initialization check inside the lock. o In thr_setschedparam.c: When breaking out of the trylock...retry if busy loop make sure to reset the mtx pointer to null if the mutex is nolonger in a queue. Revision Changes Path 1.30 +2 -0 src/lib/libthr/thread/thr_mutex.c 1.7 +16 -20 src/lib/libthr/thread/thr_rwlock.c 1.8 +1 -0 src/lib/libthr/thread/thr_setschedparam.c