Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Mar 2001 18:06:09 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/sys mutex.h
Message-ID:  <200103070206.f27269k65632@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2001/03/06 18:06:09 PST

  Modified files:
    sys/sys              mutex.h 
  Log:
  - Include <sys/systm.h> for KASSERT().
  - Move the _mtx_assert() prototype up to the top of the file with the rest
    of the function prototypes.
  - Define all the mtx_foo() macros in terms of mtx_foo_flags().
  - Add a KASSERT() to check for invalid options in mtx_lock_flags().
  - Move the mtx_assert() to ensure a mutex is owned before releasing it
    in front of WITNESS_EXIT() in all the mtx_unlock_* macros.
  - Change the MPASS* macros to be on #ifdef INVARIANTS, not just #ifdef
    MUTEX_DEBUG since most of them check to see that the mutex functions are
    called properly.  Define MPASS4() in terms of KASSERT() to do this.
  - Define MPASS{,[23]} in terms of MPASS4() to simplify things and avoid
    code duplication.
  
  Revision  Changes    Path
  1.27      +18 -73    src/sys/sys/mutex.h


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




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