From owner-cvs-src@FreeBSD.ORG Thu Dec 14 13:22:04 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0465816A407; Thu, 14 Dec 2006 13:22:04 +0000 (UTC) (envelope-from davidxu@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4213C43CB0; Thu, 14 Dec 2006 13:20:28 +0000 (GMT) (envelope-from davidxu@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kBEDM3Jc098188; Thu, 14 Dec 2006 13:22:03 GMT (envelope-from davidxu@repoman.freebsd.org) Received: (from davidxu@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kBEDM3FM098186; Thu, 14 Dec 2006 13:22:03 GMT (envelope-from davidxu) Message-Id: <200612141322.kBEDM3FM098186@repoman.freebsd.org> From: David Xu Date: Thu, 14 Dec 2006 13:22:02 +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/lib/libthr/thread thr_mutex.c thr_umtx.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: Thu, 14 Dec 2006 13:22:04 -0000 davidxu 2006-12-14 13:22:02 UTC FreeBSD src repository Modified files: lib/libthr/thread thr_mutex.c thr_umtx.h Log: Create inline function _thr_umutex_trylock2 to only try one atomic operation, if it is failed, we call syscall directly, this saves one atomic operation per lock contention. Revision Changes Path 1.49 +3 -3 src/lib/libthr/thread/thr_mutex.c 1.9 +8 -0 src/lib/libthr/thread/thr_umtx.h