From owner-cvs-all@FreeBSD.ORG Mon Aug 28 04:52:51 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B9DB16A4DE; Mon, 28 Aug 2006 04:52:51 +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 22BAC43D49; Mon, 28 Aug 2006 04:52:51 +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 k7S4qp0q059296; Mon, 28 Aug 2006 04:52:51 GMT (envelope-from davidxu@repoman.freebsd.org) Received: (from davidxu@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k7S4qoFE059295; Mon, 28 Aug 2006 04:52:50 GMT (envelope-from davidxu) Message-Id: <200608280452.k7S4qoFE059295@repoman.freebsd.org> From: David Xu Date: Mon, 28 Aug 2006 04:52:50 +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_create.c 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: Mon, 28 Aug 2006 04:52:51 -0000 davidxu 2006-08-28 04:52:50 UTC FreeBSD src repository Modified files: lib/libthr/thread thr_create.c thr_init.c thr_mutex.c thr_private.h Log: Use umutex APIs to implement pthread_mutex, member pp_mutexq is added into pthread structure to keep track of locked PTHREAD_PRIO_PROTECT mutex, no real mutex code is changed, the mutex locking and unlocking code should has same performance as before. Revision Changes Path 1.33 +1 -0 src/lib/libthr/thread/thr_create.c 1.39 +1 -0 src/lib/libthr/thread/thr_init.c 1.46 +100 -55 src/lib/libthr/thread/thr_mutex.c 1.69 +14 -18 src/lib/libthr/thread/thr_private.h