From owner-cvs-src-old@FreeBSD.ORG Tue Oct 26 09:27:13 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1007C1065675 for ; Tue, 26 Oct 2010 09:27:13 +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 EF7638FC1B for ; Tue, 26 Oct 2010 09:27:12 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id o9Q9RCMX027933 for ; Tue, 26 Oct 2010 09:27:12 GMT (envelope-from davidxu@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o9Q9RCpK027932 for cvs-src-old@freebsd.org; Tue, 26 Oct 2010 09:27:12 GMT (envelope-from davidxu@repoman.freebsd.org) Message-Id: <201010260927.o9Q9RCpK027932@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to davidxu@repoman.freebsd.org using -f From: David Xu Date: Tue, 26 Oct 2010 09:25:29 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/include pthread.h src/lib/libthr/thread thr_cond.c thr_init.c thr_mutex.c thr_private.h thr_rwlock.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Oct 2010 09:27:13 -0000 davidxu 2010-10-26 09:25:29 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) include pthread.h lib/libthr/thread thr_cond.c thr_init.c thr_mutex.c thr_private.h thr_rwlock.c Log: SVN rev 214371 on 2010-10-26 09:25:29Z by davidxu MFC r213241, r213257: In current code, statically initialized and destroyed object have same null value, the code can not distinguish between them, to fix the problem, now a destroyed object is assigned to a non-null value, and it will be rejected by some pthread functions. PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP is changed to number 1, so that adaptive mutex can be statically initialized correctly. Revision Changes Path 1.44.2.2 +1 -1 src/include/pthread.h 1.25.2.2 +21 -16 src/lib/libthr/thread/thr_cond.c 1.51.2.2 +6 -0 src/lib/libthr/thread/thr_init.c 1.75.2.2 +103 -118 src/lib/libthr/thread/thr_mutex.c 1.95.2.3 +10 -0 src/lib/libthr/thread/thr_private.h 1.16.2.2 +25 -58 src/lib/libthr/thread/thr_rwlock.c