cvs commit: src/share/man/man9 condvar.9 src/sys/kern kern_condvar.c src/sys/sys condvar.h

John Baldwin jhb at FreeBSD.org
Wed Mar 21 22:22:14 UTC 2007


jhb         2007-03-21 22:22:13 UTC

  FreeBSD src repository

  Modified files:
    share/man/man9       condvar.9 
    sys/kern             kern_condvar.c 
    sys/sys              condvar.h 
  Log:
  Rename the cv_*wait*() functions to _cv_*wait*() and change their second
  argument from a mutex to a lock_object.  Add cv_*wait*() wrapper macros
  that accept either a mutex, rwlock, or sx lock as the second argument and
  convert it to a lock_object and then call _cv_*wait*().  Basically, the
  visible difference is that you can now use rwlocks and sx locks with
  condition variables using the same API as with mutexes.
  
  Revision  Changes    Path
  1.18      +17 -9     src/share/man/man9/condvar.9
  1.60      +58 -51    src/sys/kern/kern_condvar.c
  1.14      +17 -6     src/sys/sys/condvar.h


More information about the cvs-src mailing list