Date: Tue, 17 Aug 2010 02:50:12 +0000 (UTC) From: David Xu <davidxu@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/lib/libthr/thread thr_exit.c Message-ID: <201008170250.o7H2obK6041334@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
davidxu 2010-08-17 02:50:12 UTC FreeBSD src repository Modified files: lib/libthr/thread thr_exit.c Log: SVN rev 211409 on 2010-08-17 02:50:12Z by davidxu Tweak code a bit to be POSIX compatible, when a cancellation request is acted upon, or when a thread calls pthread_exit(), the thread first disables cancellation by setting its cancelability state to PTHREAD_CANCEL_DISABLE and its cancelability type to PTHREAD_CANCEL_DEFERRED. The cancelability state remains set to PTHREAD_CANCEL_DISABLE until the thread has terminated. It has no effect if a cancellation cleanup handler or thread-specific data destructor routine changes the cancelability state to PTHREAD_CANCEL_ENABLE. Revision Changes Path 1.32 +2 -0 src/lib/libthr/thread/thr_exit.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008170250.o7H2obK6041334>