cvs commit: src/sys/sys proc.h umtx.h src/sys/kern kern_thr.c
kern_umtx.c
David Xu
davidxu at FreeBSD.org
Mon Dec 4 06:15:13 PST 2006
davidxu 2006-12-04 14:15:12 UTC
FreeBSD src repository
Modified files:
sys/sys proc.h umtx.h
sys/kern kern_thr.c kern_umtx.c
Log:
if a thread blocked on userland condition variable is
pthread_cancel()ed, it is expected that the thread will not
consume a pthread_cond_signal(), therefor, we use thr_wake()
to mark a flag, the flag tells a thread calling do_cv_wait()
in umtx code to not block on a condition variable.
Thread library is expected that once a thread detected itself
is in pthread_cond_wait, it will call the thr_wake() for itself
in its SIGCANCEL handler.
Revision Changes Path
1.57 +11 -0 src/sys/kern/kern_thr.c
1.56 +10 -5 src/sys/kern/kern_umtx.c
1.465 +1 -0 src/sys/sys/proc.h
1.27 +3 -0 src/sys/sys/umtx.h
More information about the cvs-src
mailing list