From owner-cvs-all@FreeBSD.ORG Thu May 29 07:57:34 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 46735106567B; Thu, 29 May 2008 07:57:34 +0000 (UTC) (envelope-from davidxu@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 200098FC26; Thu, 29 May 2008 07:57:34 +0000 (UTC) (envelope-from davidxu@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m4T7vYKu077598; Thu, 29 May 2008 07:57:34 GMT (envelope-from davidxu@repoman.freebsd.org) Received: (from davidxu@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m4T7vXnL077594; Thu, 29 May 2008 07:57:33 GMT (envelope-from davidxu) Message-Id: <200805290757.m4T7vXnL077594@repoman.freebsd.org> From: David Xu Date: Thu, 29 May 2008 07:57:33 +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_init.c thr_mutex.c thr_private.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: Thu, 29 May 2008 07:57:34 -0000 davidxu 2008-05-29 07:57:33 UTC FreeBSD src repository Modified files: lib/libthr/thread thr_init.c thr_mutex.c thr_private.h Log: - Reduce function call overhead for uncontended case. - Remove unused flags MUTEX_FLAGS_* and their code. - Check validity of the timeout parameter in mutex_self_lock(). Revision Changes Path 1.51 +1 -2 src/lib/libthr/thread/thr_init.c 1.74 +101 -203 src/lib/libthr/thread/thr_mutex.c 1.94 +0 -10 src/lib/libthr/thread/thr_private.h