diff options
author | davidxu <davidxu@FreeBSD.org> | 2010-08-24 09:57:06 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2010-08-24 09:57:06 +0000 |
commit | 14556ea4793fe097c15c7c0c773de11d1a17f153 (patch) | |
tree | ff0cb0e2451250239015c5c3eb2814aacac94b03 /lib/libthr/thread/thr_private.h | |
parent | 284fdd96030832dd4e95f60282ea14b186a254a0 (diff) | |
download | FreeBSD-src-14556ea4793fe097c15c7c0c773de11d1a17f153.zip FreeBSD-src-14556ea4793fe097c15c7c0c773de11d1a17f153.tar.gz |
Add wrapper for setcontext() and swapcontext(), the wrappers
unblock SIGCANCEL which is needed by thread cancellation.
Diffstat (limited to 'lib/libthr/thread/thr_private.h')
-rw-r--r-- | lib/libthr/thread/thr_private.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libthr/thread/thr_private.h b/lib/libthr/thread/thr_private.h index f0c3aa0..c9e14c5 100644 --- a/lib/libthr/thread/thr_private.h +++ b/lib/libthr/thread/thr_private.h @@ -709,6 +709,12 @@ int __sys_sigwaitinfo(const sigset_t *set, siginfo_t *info); int __sys_nanosleep(const struct timespec *, struct timespec *); #endif +/* #include <sys/ucontext.h> */ +#ifdef _SYS_UCONTEXT_H_ +int __sys_setcontext(const ucontext_t *ucp); +int __sys_swapcontext(ucontext_t *oucp, const ucontext_t *ucp); +#endif + /* #include <unistd.h> */ #ifdef _UNISTD_H_ int __sys_close(int); |