cvs commit: src/lib/libthr/thread thr_create.c thr_exit.c thr_sig.c
David Xu
davidxu at FreeBSD.org
Mon Mar 17 19:06:52 PDT 2008
davidxu 2008-03-18 02:06:51 UTC
FreeBSD src repository
Modified files:
lib/libthr/thread thr_create.c thr_exit.c thr_sig.c
Log:
- Copy signal mask out before THR_UNLOCK(), because THR_UNLOCK() may call
_thr_suspend_check() which messes sigmask saved in thread structure.
- Don't suspend a thread has force_exit set.
- In pthread_exit(), if there is a suspension flag set, wake up waiting-
thread after setting PS_DEAD, this causes waiting-thread to break loop
in suspend_common().
Revision Changes Path
1.42 +10 -4 src/lib/libthr/thread/thr_create.c
1.26 +4 -0 src/lib/libthr/thread/thr_exit.c
1.28 +3 -0 src/lib/libthr/thread/thr_sig.c
More information about the cvs-src
mailing list