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 <[EMAIL PROTECTED]> -- 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 [EMAIL PROTECTED]
> with "unsubscribe freebsd-hackers" in the body of the message

--------------------------------------------
E-Mail: Alexander N. Kabaev <[EMAIL PROTECTED]>
Date: 23-Oct-2001
Time: 14:00:00
--------------------------------------------

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to