Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jun 2001 23:39:37 -0700 (PDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern kern_sx.c src/sys/sys sx.h
Message-ID:  <200106270639.f5R6dc541264@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2001/06/26 23:39:37 PDT

  Modified files:
    sys/kern             kern_sx.c 
    sys/sys              sx.h 
  Log:
  - Add trylock variants of shared and exclusive locks.
  - The sx assertions don't actually need the internal sx mutex lock, so
    don't bother doing so.
  - Add a new assertion SX_ASSERT_LOCKED() that asserts that either a
    shared or exclusive lock should be held.  This assertion should be used
    instead of SX_ASSERT_SLOCKED() in almost all cases.
  - Adjust some KASSERT()'s to include file and line information.
  - Use the new witness_assert() function in the WITNESS case for sx slock
    asserts to verify that the current thread actually owns a slock.
  
  Revision  Changes    Path
  1.6       +43 -5     src/sys/kern/kern_sx.c
  1.8       +34 -24    src/sys/sys/sx.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?200106270639.f5R6dc541264>