diff options
author | davidxu <davidxu@FreeBSD.org> | 2006-12-04 14:15:12 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2006-12-04 14:15:12 +0000 |
commit | 22a81fc246efb2668eddcb6ccd27129feaa5910c (patch) | |
tree | 96b0dbfdbf6b0cc6b79bddb39c447b7346ae3471 /lib/libthr/thread/thr_cond.c | |
parent | 1f83d70e044c52a4ed74fe1aae9685e70ead1409 (diff) | |
download | FreeBSD-src-22a81fc246efb2668eddcb6ccd27129feaa5910c.zip FreeBSD-src-22a81fc246efb2668eddcb6ccd27129feaa5910c.tar.gz |
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.
Diffstat (limited to 'lib/libthr/thread/thr_cond.c')
0 files changed, 0 insertions, 0 deletions