Date: Tue, 28 Sep 2010 04:57:56 +0000 (UTC) From: David Xu <davidxu@FreeBSD.org> To: cvs-src-old@freebsd.org 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 Message-ID: <201009280458.o8S4wm2D063642@repoman.freebsd.org>
index | next in thread | raw e-mail
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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009280458.o8S4wm2D063642>
