From owner-cvs-src-old@FreeBSD.ORG Tue Sep 28 04:58:48 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 5B3071065674 for ; Tue, 28 Sep 2010 04:58:48 +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 480A28FC15 for ; Tue, 28 Sep 2010 04:58:48 +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 o8S4wmTS063643 for ; Tue, 28 Sep 2010 04:58:48 GMT (envelope-from davidxu@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o8S4wm2D063642 for cvs-src-old@freebsd.org; Tue, 28 Sep 2010 04:58:48 GMT (envelope-from davidxu@repoman.freebsd.org) Message-Id: <201009280458.o8S4wm2D063642@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to davidxu@repoman.freebsd.org using -f From: David Xu Date: Tue, 28 Sep 2010 04:57:56 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD 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, 28 Sep 2010 04:58:48 -0000 davidxu 2010-09-28 04:57:56 UTC FreeBSD src repository Modified files: include pthread.h lib/libthr/thread thr_cond.c thr_init.c thr_mutex.c thr_private.h thr_rwlock.c Log: SVN rev 213241 on 2010-09-28 04:57:56Z by davidxu 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.45 +1 -1 src/include/pthread.h 1.28 +21 -18 src/lib/libthr/thread/thr_cond.c 1.58 +6 -0 src/lib/libthr/thread/thr_init.c 1.77 +98 -119 src/lib/libthr/thread/thr_mutex.c 1.114 +10 -0 src/lib/libthr/thread/thr_private.h 1.17 +25 -58 src/lib/libthr/thread/thr_rwlock.c