From owner-cvs-all@FreeBSD.ORG Sun Jul 11 16:07:07 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7CDE416A4CE; Sun, 11 Jul 2004 16:07:07 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E28943D41; Sun, 11 Jul 2004 16:07:07 +0000 (GMT) (envelope-from darrenr@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 i6BG774x077406; Sun, 11 Jul 2004 16:07:07 GMT (envelope-from darrenr@repoman.freebsd.org) Received: (from darrenr@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i6BG77wH077405; Sun, 11 Jul 2004 16:07:07 GMT (envelope-from darrenr) Message-Id: <200407111607.i6BG77wH077405@repoman.freebsd.org> From: Darren Reed Date: Sun, 11 Jul 2004 16:07:07 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/sys sx.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jul 2004 16:07:07 -0000 darrenr 2004-07-11 16:07:07 UTC FreeBSD src repository Modified files: sys/sys sx.h Log: Add sx_unlock() macro as a frontend to both sx_sunlock() and sx_xunlock(), using sx_cnt to determine what state the lock is in and call the respective function appropriately. Revision Changes Path 1.20 +7 -0 src/sys/sys/sx.h