aboutsummaryrefslogtreecommitdiff
path: root/lib/libpthread/sys/thr_error.c
Commit message (Collapse)AuthorAgeFilesLines
* Repo copy libpthreads to libkse.David E. O'Brien2007-10-091-61/+0
| | | | | | | | | This introduces the WITHOUT_LIBKSE nob, and changes WITHOUT_LIBPTHREADS to mean with neither threading libs. Approved by: re(kensmith) Notes: svn path=/head/; revision=172492
* Add compatibility symbol maps. libpthread (.so.1 and .so.2)Daniel Eischen2006-03-131-0/+2
| | | | | | | | | | | | | | used LIBTHREAD_1_0 as its version definition, but now needs to define its symbols in the same namespace used by libc. The compatibility hooks allows you to use libraries and binaries built and linked to libpthread before libc was built with symbol versioning. The shims can be removed if libpthread is given a version bump. Reviewed by: davidxu Notes: svn path=/head/; revision=156611
* Use a generic way to back threads out of wait queues when handlingDaniel Eischen2004-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 Notes: svn path=/head/; revision=139023
* Protect thread errno from being changed while operatingDaniel Eischen2003-04-231-1/+5
| | | | | | | | | | | on behalf of the KSE. Add a kse_reinit function to reinitialize a reused KSE. Submitted by: davidxu Notes: svn path=/head/; revision=113942
* Add FIFO queueing locking operations based on atomic swap.Daniel Eischen2003-04-181-6/+11
| | | | | | | | | Modify thread errno for the new libpthread changes. Reviewed by: davidxu Notes: svn path=/head/; revision=113657
* remove #ifdef _THREAD_SAFEMax Khon2003-01-241-2/+0
| | | | Notes: svn path=/head/; revision=109772
* Make the changes needed for libpthread to compile in its new home.Jonathan 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 Notes: svn path=/head/; revision=103388
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Add RCS IDs to those files without them.Daniel Eischen1999-08-051-0/+1
| | | | | | | | | | Fix copyrights (s/REGENTS/AUTHOR). Suggested by: tg Approved by: jb Notes: svn path=/head/; revision=49439
* Change the name of this source file so that libc_r builds it insteadJohn Birrell1998-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. Notes: svn path=/head/; revision=35538