From owner-freebsd-hackers Tue Oct 23 10:53:19 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mail11.speakeasy.net (mail11.speakeasy.net [216.254.0.211]) by hub.freebsd.org (Postfix) with ESMTP id 66E2F37B409 for ; Tue, 23 Oct 2001 10:52:48 -0700 (PDT) Received: (qmail 48030 invoked from network); 23 Oct 2001 17:52:47 -0000 Received: from unknown (HELO laptop.baldwin.cx) ([64.81.54.73]) (envelope-sender ) by mail11.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 23 Oct 2001 17:52:47 -0000 Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Tue, 23 Oct 2001 10:52:43 -0700 (PDT) From: John Baldwin To: hackers@FreeBSD.org Subject: sx_assert() vs. SX_ASSERT_*() Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Anyone object greatly to making a change to the sx(9) API to use an sx_assert() function similar to mtx_assert() for mutexes instead of having several SX_ASSERT_FOO macros? Here is what the new API would look like: sx_assert(&foo_lock, SX_LOCKED); sx_assert(&bar_lock, SX_SLOCKED); vs. SX_ASSERT_LOCKED(&foo_lock); SX_ASSERT_SLOCKED(&bar_lock); -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message