Date: Mon, 4 Dec 2006 14:15:12 +0000 (UTC) From: David Xu <davidxu@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sys proc.h umtx.h src/sys/kern kern_thr.c kern_umtx.c Message-ID: <200612041415.kB4EFDJ6029710@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612041415.kB4EFDJ6029710>
