summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/sys/thr_error.c
Commit message (Collapse)AuthorAgeFilesLines
* Use a generic way to back threads out of wait queues when handlingdeischen2004-12-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* Protect thread errno from being changed while operatingdeischen2003-04-231-1/+5
| | | | | | | | on behalf of the KSE. Add a kse_reinit function to reinitialize a reused KSE. Submitted by: davidxu
* Add FIFO queueing locking operations based on atomic swap.deischen2003-04-181-6/+11
| | | | | | Modify thread errno for the new libpthread changes. Reviewed by: davidxu
* remove #ifdef _THREAD_SAFEfjoe2003-01-241-2/+0
|
* Make the changes needed for libpthread to compile in its new home.mini2002-09-161-1/+1
| | | | | | | | The new libpthread will provide POSIX threading support using KSE. These files were previously repo-copied from src/lib/libc_r. Reviewed by: deischen Approved by: -arch
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Add RCS IDs to those files without them.deischen1999-08-051-0/+1
| | | | | | | Fix copyrights (s/REGENTS/AUTHOR). Suggested by: tg Approved by: jb
* Change the name of this source file so that libc_r builds it insteadjb1998-04-301-0/+50
of the one in libc that contains the weak symbol for __error. FreeBSD's make accumulates paths to the point that it can find *anything*, possibly including the car keys.
OpenPOWER on IntegriCloud