From owner-cvs-src@FreeBSD.ORG Fri Aug 8 14:36:56 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 227931065675; Fri, 8 Aug 2008 14:36:56 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 0FEA38FC08; Fri, 8 Aug 2008 14:36:56 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.2/8.14.2) with ESMTP id m78EateH073976; Fri, 8 Aug 2008 14:36:55 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m78Eat2W073974; Fri, 8 Aug 2008 14:36:55 GMT (envelope-from rwatson@repoman.freebsd.org) Message-Id: <200808081436.m78Eat2W073974@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to rwatson@repoman.freebsd.org using -f From: Robert Watson Date: Fri, 8 Aug 2008 14:36:21 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_7 Cc: Subject: cvs commit: src/sys/kern kern_rwlock.c src/sys/sys rwlock.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Aug 2008 14:36:56 -0000 rwatson 2008-08-08 14:36:21 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) sys/kern kern_rwlock.c sys/sys rwlock.h Log: SVN rev 181429 on 2008-08-08 14:36:21Z by rwatson Merge r177843,178147 from head to stable/7: Add rw_try_rlock() and rw_try_wlock() to rwlocks. These functions try the specified operation (rlocking and wlocking) and true is returned if the operation completes, false otherwise. The KPI is enriched by this commit, so __FreeBSD_version bumping and manpage updating will happen soon. Requested by: jeff, kris Trylocks were implemented, remove stale comment Discussed with: attilio, jhb Revision Changes Path 1.28.4.4 +48 -0 src/sys/kern/kern_rwlock.c 1.14.4.1 +4 -2 src/sys/sys/rwlock.h