cvs commit: src/sys/kern kern_mutex.c

Attilio Rao attilio at freebsd.org
Wed Feb 13 16:16:14 PST 2008


2008/2/14, John Baldwin <jhb at freebsd.org>:
> jhb         2008-02-13 23:33:50 UTC
>
>   FreeBSD src repository
>
>   Modified files:
>     sys/kern             kern_mutex.c
>   Log:
>   Add a couple of assertions and KTR logging to thread_lock_flags() to
>   match mtx_lock_spin_flags().

As I tried to pointed out in perforce, it would not be better to check
against LC_SPINLOCK (and lc_flags) instead than direct comparisons
with lock_class_mtx_spin ?

Attilio


-- 
Peace can only be achieved by understanding - A. Einstein


More information about the cvs-src mailing list