Date: Sun, 29 Jun 2003 14:21:52 -0700 (PDT) From: Mike Makonnen <mtm@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libthr/thread thr_kern.c thr_private.h Message-ID: <200306292121.h5TLLqWx077722@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
mtm 2003/06/29 14:21:52 PDT
FreeBSD src repository
Modified files:
lib/libthr/thread thr_kern.c thr_private.h
Log:
In a critical section, separate the aquisition of the thread lock
and the disabling of signals. What we are really interested in is
keeping track of recursive disabling of signals. We should not
be recursively acquiring thread locks. Any such situations should
be reorganized to not require a recursive lock.
Separating the two out also allows us to block signals independent of
acquiring thread locks. This will be needed in libthr in the near future when
we put the pieces together to protect libc functions that use pthread mutexes
and low level locks.
Revision Changes Path
1.10 +24 -16 src/lib/libthr/thread/thr_kern.c
1.18 +3 -1 src/lib/libthr/thread/thr_private.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306292121.h5TLLqWx077722>
