Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Oct 2001 14:05:29 -0400 (EDT)
From:      "Alexander N. Kabaev" <ak03@gte.com>
To:        John Baldwin <jhb@FreeBSD.ORG>
Cc:        hackers@FreeBSD.ORG
Subject:   RE: sx_assert() vs. SX_ASSERT_*()
Message-ID:  <XFMail.20011023140529.ak03@gte.com>
In-Reply-To: <XFMail.011023105243.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
I am strongly suport the change :) I had to implement similar function
for an unnamed product port for FreeBSD and your changes will definitely
minimize my diffs.

On 23-Oct-2001 John Baldwin wrote:
> 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 <jhb@FreeBSD.org> -- 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

--------------------------------------------
E-Mail: Alexander N. Kabaev <ak03@gte.com>
Date: 23-Oct-2001
Time: 14:00:00
--------------------------------------------

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20011023140529.ak03>