diff options
author | deischen <deischen@FreeBSD.org> | 2003-05-29 17:10:45 +0000 |
---|---|---|
committer | deischen <deischen@FreeBSD.org> | 2003-05-29 17:10:45 +0000 |
commit | cccb8a341841afbb6950f77adfed8b5bf81138ae (patch) | |
tree | dd986910f07eda0fc0f920fe954d097068627fef /lib/libpthread/thread/thr_private.h | |
parent | 48c0de19de35c62a5516be4fe25f5dcf738dd5db (diff) | |
download | FreeBSD-src-cccb8a341841afbb6950f77adfed8b5bf81138ae.zip FreeBSD-src-cccb8a341841afbb6950f77adfed8b5bf81138ae.tar.gz |
Don't really spin on a spinlock; silently convert it to the same
low-level lock used by the libpthread implementation. In the
future, we'll eliminate spinlocks from libc but that will wait
until after 5.1-release.
Don't call an application signal handler if the handler is
the same as the library-installed handler. This seems to
be possible after a fork and is the cause of konsole hangs.
Approved by: re@ (jhb)
Diffstat (limited to 'lib/libpthread/thread/thr_private.h')
-rw-r--r-- | lib/libpthread/thread/thr_private.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_private.h b/lib/libpthread/thread/thr_private.h index a6e8653..a6d3494 100644 --- a/lib/libpthread/thread/thr_private.h +++ b/lib/libpthread/thread/thr_private.h @@ -1114,6 +1114,7 @@ void _thr_sched_frame(struct pthread_sigframe *); void _thr_sched_switch(struct pthread *); void _thr_sched_switch_unlocked(struct pthread *); void _thr_set_timeout(const struct timespec *); +void _thr_seterrno(struct pthread *, int); void _thr_sig_handler(int, siginfo_t *, ucontext_t *); void _thr_sig_check_pending(struct pthread *); void _thr_sig_rundown(struct pthread *, ucontext_t *, @@ -1121,7 +1122,7 @@ void _thr_sig_rundown(struct pthread *, ucontext_t *, void _thr_sig_send(struct pthread *pthread, int sig); void _thr_sig_wrapper(void); void _thr_sigframe_restore(struct pthread *thread, struct pthread_sigframe *psf); -void _thr_seterrno(struct pthread *, int); +void _thr_spinlock_init(void); void _thr_enter_cancellation_point(struct pthread *); void _thr_leave_cancellation_point(struct pthread *); int _thr_setconcurrency(int new_level); |