From owner-cvs-src@FreeBSD.ORG Sat Apr 8 13:24:45 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org 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 B56B516A406; Sat, 8 Apr 2006 13:24:45 +0000 (UTC) (envelope-from davidxu@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D7F543D45; Sat, 8 Apr 2006 13:24:45 +0000 (GMT) (envelope-from davidxu@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k38DOjRb048093; Sat, 8 Apr 2006 13:24:45 GMT (envelope-from davidxu@repoman.freebsd.org) Received: (from davidxu@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k38DOjU5048092; Sat, 8 Apr 2006 13:24:45 GMT (envelope-from davidxu) Message-Id: <200604081324.k38DOjU5048092@repoman.freebsd.org> From: David Xu Date: Sat, 8 Apr 2006 13:24:45 +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_cond.c thr_mutex.c thr_private.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: Sat, 08 Apr 2006 13:24:45 -0000 davidxu 2006-04-08 13:24:44 UTC FreeBSD src repository Modified files: lib/libthr/thread thr_cond.c thr_mutex.c thr_private.h Log: Do not check validity of timeout if a mutex can be acquired immediately. Completly drop recursive mutex in pthread_cond_wait and restore recursive after resumption. Reorganize code to make gcc to generate better code. Revision Changes Path 1.18 +12 -11 src/lib/libthr/thread/thr_cond.c 1.42 +89 -67 src/lib/libthr/thread/thr_mutex.c 1.61 +2 -2 src/lib/libthr/thread/thr_private.h