freebsd-nq/lib/libc_r
Daniel Eischen b5a8a15c2f Don't needlessly poll file descriptors when there are no
file descriptors needing to be polled (Doh!).  Reported
by Dan Nelson <dnelson@emsphone.com>.

Don't install and start the scheduling timer until the
first thread is created.  This prevents the overhead of
having a periodic scheduling signal in a single threaded
program.  Reported by Dan Nelson <dnelson@emsphone.com>.

Allow builtin longjmps out of application installed
signal handlers without the need perform any post-handler
cleanup:

  o Change signal handling to save the threads interrupted
    context on the stack.  The threads current context is
    now always stored in the same place (in the pthread).
    If and when a signal handler returns, the interrupted
    context is copied back to the storage area in the pthread.

  o Before calling invoking a signal handler for a thread,
    back the thread out of any internal waiting queues
    (mutex, CV, join, etc) to which it belongs.

Rework uthread_info.c a bit to make it easier to change
the format of a thread dump.

Use an alternal signal stack for the thread library's
signal handler.  This allows us to fiddle with the main
threads stack without fear of it being in use.

Reviewed by:	jasone
2000-11-09 05:08:26 +00:00
..
arch $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
man Make sem_post() safe to call from within a signal handler, as required by 2000-08-01 21:19:09 +00:00
sys $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
test Add test to detect propagation of cancellation points within libc_r. 2000-04-26 23:25:58 +00:00
uthread Don't needlessly poll file descriptors when there are no 2000-11-09 05:08:26 +00:00
Makefile Enable _PTHREADS_INVARIANTS until the recent libc_r changes are 2000-10-13 22:19:50 +00:00