Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jun 2007 21:31:56 +0000 (UTC)
From:      Attilio Rao <attilio@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern kern_rwlock.c src/sys/sys _rwlock.h rwlock.h
Message-ID:  <200706262131.l5QLVuei017693@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
attilio     2007-06-26 21:31:56 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_rwlock.c 
    sys/sys              _rwlock.h rwlock.h 
  Log:
  Introduce a new rwlocks initialization function: rw_init_flags.
  This is very similar to sx_init_flags: it initializes the rwlock using
  special flags passed as third argument (RW_DUPOK, RW_NOPROFILE,
  RW_NOWITNESS, RW_QUIET, RW_RECURSE).
  Among these, the most important new feature is probabilly that rwlocks
  can be acquired recursively now (for both shared and exclusive paths).
  
  Because of the recursion counter, the ABI is changed.
  
  Tested by: Timothy Redaelli <drizzt@gufi.org>
  Reviewed by: jhb
  Approved by: jeff (mentor)
  Approved by: re
  
  Revision  Changes    Path
  1.27      +85 -9     src/sys/kern/kern_rwlock.c
  1.4       +1 -0      src/sys/sys/_rwlock.h
  1.13      +17 -3     src/sys/sys/rwlock.h



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