]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r213241, r213257:
authordavidxu <davidxu@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 26 Oct 2010 09:25:29 +0000 (09:25 +0000)
committerdavidxu <davidxu@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 26 Oct 2010 09:25:29 +0000 (09:25 +0000)
commit9f23149eebb4278a15fbe5aa8aafd7142a2fe3fc
tree966b0f22f9d42a31b65ff99b47b4e297fd42b4bf
parent98fb49f1eed4828cdf89f022371c544a06423550
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.

git-svn-id: svn://svn.freebsd.org/base/stable/8@214371 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
include/pthread.h
lib/libthr/thread/thr_cond.c
lib/libthr/thread/thr_init.c
lib/libthr/thread/thr_mutex.c
lib/libthr/thread/thr_private.h
lib/libthr/thread/thr_rwlock.c