From owner-cvs-all Tue Jun 26 23:39:42 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 34CC237B407; Tue, 26 Jun 2001 23:39:38 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (from jhb@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f5R6dc541264; Tue, 26 Jun 2001 23:39:38 -0700 (PDT) (envelope-from jhb) Message-Id: <200106270639.f5R6dc541264@freefall.freebsd.org> From: John Baldwin Date: Tue, 26 Jun 2001 23:39:37 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_sx.c src/sys/sys sx.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG jhb 2001/06/26 23:39:37 PDT Modified files: sys/kern kern_sx.c sys/sys sx.h Log: - Add trylock variants of shared and exclusive locks. - The sx assertions don't actually need the internal sx mutex lock, so don't bother doing so. - Add a new assertion SX_ASSERT_LOCKED() that asserts that either a shared or exclusive lock should be held. This assertion should be used instead of SX_ASSERT_SLOCKED() in almost all cases. - Adjust some KASSERT()'s to include file and line information. - Use the new witness_assert() function in the WITNESS case for sx slock asserts to verify that the current thread actually owns a slock. Revision Changes Path 1.6 +43 -5 src/sys/kern/kern_sx.c 1.8 +34 -24 src/sys/sys/sx.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message