From owner-cvs-all@FreeBSD.ORG Fri Dec 14 06:25:57 2007 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 B1B0C16A46C; Fri, 14 Dec 2007 06:25:57 +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 A7B0613C4D3; Fri, 14 Dec 2007 06:25:57 +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 lBE6Pvtx002630; Fri, 14 Dec 2007 06:25:57 GMT (envelope-from davidxu@repoman.freebsd.org) Received: (from davidxu@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id lBE6PviN002629; Fri, 14 Dec 2007 06:25:57 GMT (envelope-from davidxu) Message-Id: <200712140625.lBE6PviN002629@repoman.freebsd.org> From: David Xu Date: Fri, 14 Dec 2007 06:25:57 +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/include pthread_np.h src/lib/libthr/thread thr_mutex.c thr_private.h src/lib/libthr pthread.map 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: Fri, 14 Dec 2007 06:25:57 -0000 davidxu 2007-12-14 06:25:57 UTC FreeBSD src repository Modified files: include pthread_np.h lib/libthr/thread thr_mutex.c thr_private.h lib/libthr pthread.map Log: 1. Add function pthread_mutex_setspinloops_np to turn a mutex's spin loop count. 2. Add function pthread_mutex_setyieldloops_np to turn a mutex's yield loop count. 3. Make environment variables PTHREAD_SPINLOOPS and PTHREAD_YIELDLOOPS to be only used for turnning PTHREAD_MUTEX_ADAPTIVE_NP mutex. Revision Changes Path 1.18 +4 -0 src/include/pthread_np.h 1.20 +8 -0 src/lib/libthr/pthread.map 1.65 +104 -29 src/lib/libthr/thread/thr_mutex.c 1.81 +2 -0 src/lib/libthr/thread/thr_private.h