From owner-cvs-all@FreeBSD.ORG Wed Mar 21 22:22:14 2007 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4BC2B16A400; Wed, 21 Mar 2007 22:22:14 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 3D3EA13C46E; Wed, 21 Mar 2007 22:22:14 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l2LMMEmL036603; Wed, 21 Mar 2007 22:22:14 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l2LMMEs7036602; Wed, 21 Mar 2007 22:22:14 GMT (envelope-from jhb) Message-Id: <200703212222.l2LMMEs7036602@repoman.freebsd.org> From: John Baldwin Date: Wed, 21 Mar 2007 22:22:13 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/share/man/man9 condvar.9 src/sys/kern kern_condvar.c src/sys/sys condvar.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Mar 2007 22:22:14 -0000 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