From owner-cvs-src@FreeBSD.ORG Tue Oct 14 10:34:27 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 61A6816A4C2 for ; Tue, 14 Oct 2003 10:34:27 -0700 (PDT) Received: from mail.speakeasy.net (mail5.speakeasy.net [216.254.0.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E31A43FB1 for ; Tue, 14 Oct 2003 10:34:24 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 8299 invoked from network); 14 Oct 2003 17:34:23 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender )encrypted SMTP for ; 14 Oct 2003 17:34:23 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.9/8.12.9) with ESMTP id h9EHYKce048542; Tue, 14 Oct 2003 13:34:20 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.4 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200310122102.h9CL2txf053906@repoman.freebsd.org> Date: Tue, 14 Oct 2003 13:34:29 -0400 (EDT) From: John Baldwin To: Jeff Roberson X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: RE: cvs commit: src/sys/sys mutex.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 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: Tue, 14 Oct 2003 17:34:27 -0000 On 12-Oct-2003 Jeff Roberson wrote: > jeff 2003/10/12 14:02:55 PDT > > FreeBSD src repository > > Modified files: > sys/sys mutex.h > Log: > - Implement a mtx_ownedby() macro which can be used to determine if a > particular thread owns a mutex. This cannot be done without races > unless the thread is curthread. This is a very bad idea. What use do you have for this that is not already handled by mtx_owned() or a mutex assertion? -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/