summaryrefslogtreecommitdiff
path: root/lib/librthread/rthread.c
AgeCommit message (Expand)Author
2015-05-19Instead of testing for __ELF__ and/or vax, leave out the bits for interfacingPhilip Guenther
2015-05-10In the child after fork, the dl lock has to be forced as its inner spinlockPhilip Guenther
2015-04-29Delete the duplicated sched_{policy,param} members from the internal structPhilip Guenther
2015-04-07Make pthread_atfork() track the DSO that called it like atexit() does,Philip Guenther
2014-11-16Don't restart syscalls on SIGTHR. When a cancellation happens, we need toPhilip Guenther
2014-07-01Use a flag on the pthread_t to indicate that the thread's stack wasPhilip Guenther
2014-03-16lint is dead (long live the lint!), so stop using it as a cpp conditionalPhilip Guenther
2013-12-12Fix static linking of libpthread: have crt0 invoke __init_tcb() if it'sPhilip Guenther
2013-11-29Don't try to reuse _initial_thread in the fork() wrapper, as thePhilip Guenther
2013-10-23In pthread_kill()/pthread_cancel(), hold the target thread's flagsPhilip Guenther
2013-07-30Stop overwriting the dying thread's struct thread as its tid member mayPhilip Guenther
2013-07-05VAX ELF userland bits. Consists mostly of register prefix additions.Miod Vallat
2013-06-01something's not quite right yet. ticket locks result in more CPU usageTed Unangst
2013-06-01cleanup and consolidate the spinlock_lock (what a name!) code.Ted Unangst
2013-04-06fix race when exiting a detached thread. observed by and ok guentherTed Unangst
2013-02-15Revert previous diff: sparc and sparc64 don't set the TCB to NULL in exec, yet,Philip Guenther
2013-02-14Make libpthread compatible with an ld.so that does TCB allocation:Philip Guenther
2012-08-22We want to check that the dynamic linker is available at run-time, soMatthew Dempsky
2012-08-22Test for __PIC__ instead of PIC in preparation for eliminating -DPICMatthew Dempsky
2012-08-15Oops, on a.out architectures __cerror() is called _cerror(). FixMatthew Dempsky
2012-08-13Add explicit references from rthread.o to all of the weak symbolMatthew Dempsky
2012-06-21__tfork() needs to set the stack address of the new thread in the kernel,Philip Guenthe
2012-04-10pthread_setcanceltype() shouldn't be a cancelation pointPhilip Guenthe
2012-03-22Remove pthread_suspend* and related functions. This is part of theKurt Miller
2012-03-20Permit recursive locking in _rthread_dl_lock(), as an so's destructorPhilip Guenthe
2012-03-14Force sched_yield() to be resolved before calling dlctl(DL_SET*LCK) withPhilip Guenthe
2012-03-03Add sem_timewait() and fix sem_wait()'s handling of signals, soPhilip Guenthe
2012-03-02for readability, put the label on it's own line.Federico G. Schwindt
2012-02-24sched_yield() is the standard name while pthread_yield() is thePhilip Guenthe
2012-02-19Use a form of designated initializer that works with gcc2Philip Guenthe
2012-02-18Fix previous commit: _rthread_init() was static.Philip Guenthe
2012-02-18Fix the handling of the stackaddr, stacksize, and guardsize attributes:Philip Guenthe
2012-02-16Set __isthreaded in pthread_create() instead of _rthread_init() such that itMark Kettenis
2012-01-17Reimplement mutexes, condvars, and rwlocks to eliminate bugs,Philip Guenthe
2011-12-28pthread_self() may be much cheaper and never more expensive than getthrid()Philip Guenthe
2011-12-27On failure, pthread_kill() should return the errno, not -1Philip Guenthe
2011-12-05Mark sigthr()'s sig argument as __unusedPhilip Guenthe
2011-12-05Implement cancelation for the basic syscall cancelation points,Philip Guenthe
2011-11-09Oh yeah, with TLS-lite we can get the thread handle without walking thePhilip Guenthe
2011-11-06Move <machine/spinlock.h> into rthread.h; strip out unnecessary #includesPhilip Guenthe
2011-10-17Use __tfork, __get_tcb, and __set_tcb to have a real TCB and per-threadPhilip Guenthe
2009-11-27Convert thrsleep() to an absolute timeout with clockid to eliminate aPhilip Guenthe
2009-11-27Change threxit() to take a pointer to a pid_t to zero out from thePhilip Guenthe
2009-02-20Fix a race in the reaper discovered by Tobias Ulmer. kevents are identified ...Ted Unangst
2008-10-13use calloc() instead of malloc() and memset()Kevin Lo
2008-08-14Match libpthread's behavior and make pthread_join(NULL, whatever) failPhilip Guenthe
2008-08-14Fix 5771/library: in pthread_exit(), delay the call to _sem_post() thatPhilip Guenthe
2008-08-14If the initial thread calls pthread_exit(), don't overwrite its threadPhilip Guenthe
2008-06-05- Add fork/vfork wrapper functions to reset state in the child process.Kurt Miller
2007-05-18Register the locking hooks with ld.so.Artur Grabowski