freebsd-nq/lib/libkse/sys
Daniel Eischen 843d4004b3 Use a generic way to back threads out of wait queues when handling
signals instead of having more intricate knowledge of thread state
within signal handling.

Simplify signal code because of above (by David Xu).

Use macros for libpthread usage of pthread_cleanup_push() and
pthread_cleanup_pop().  This removes some instances of malloc()
and free() from the semaphore and pthread_once() implementations.

When single threaded and forking(), make sure that the current
thread's signal mask is inherited by the forked thread.

Use private mutexes for libc and libpthread.  Signals are
deferred while threads hold private mutexes.  This fix also
breaks www/linuxpluginwrapper; a patch that fixes it is at
http://people.freebsd.org/~deischen/kse/linuxpluginwrapper.diff

Fix race condition in condition variables where handling a
signal (pthread_kill() or kill()) may not see a wakeup
(pthread_cond_signal() or pthread_cond_broadcast()).

In collaboration with:	davidxu
2004-12-18 18:07:37 +00:00
..
lock.c Add the ability to reinitialize libpthread's internal FIFO-queueing 2003-11-04 20:01:38 +00:00
lock.h Add the ability to reinitialize libpthread's internal FIFO-queueing 2003-11-04 20:01:38 +00:00
Makefile.inc Move the machine specific files from sys/Makefile.inc and put them 2003-06-23 04:28:31 +00:00
thr_error.c Use a generic way to back threads out of wait queues when handling 2004-12-18 18:07:37 +00:00