]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
To support stack unwinding for cancellation points, add -fexceptions flag
authordavidxu <davidxu@FreeBSD.org>
Sat, 25 Sep 2010 01:57:47 +0000 (01:57 +0000)
committerdavidxu <davidxu@FreeBSD.org>
Sat, 25 Sep 2010 01:57:47 +0000 (01:57 +0000)
commit74604ed9c419ab380cacaaeb78e4c26f9f37e0ad
tree7b4cd520f700d5e2d7a21bc8175c8574d209a3ce
parentdf0d735bfefbd56b7c7cbca4590c651f83e3c831
To support stack unwinding for cancellation points, add -fexceptions flag
for them, two functions _pthread_cancel_enter and _pthread_cancel_leave
are added to let thread enter and leave a cancellation point, it also
makes it possible that other functions can be cancellation points in
libraries without having to be rewritten in libthr.
14 files changed:
lib/libc/Makefile
lib/libc/gen/Makefile.inc
lib/libc/gen/Symbol.map
lib/libc/gen/_pthread_stubs.c
lib/libc/gen/sem.c
lib/libc/gen/sem_new.c
lib/libc/include/libc_private.h
lib/librt/Makefile
lib/librt/mq.c
lib/libthr/Makefile
lib/libthr/pthread.map
lib/libthr/thread/thr_cancel.c
lib/libthr/thread/thr_init.c
lib/libthr/thread/thr_private.h