summaryrefslogtreecommitdiff
path: root/lib/librthread/rthread.c
AgeCommit message (Expand)Author
2016-09-04Get rid of ticket support, replace "struct _spinlock" with "_atomic_lock_t".Michal Mazurek
2016-09-03Remove _USING_TICKETS, it's defined as 0. No functional change.Michal Mazurek
2016-09-01Less lock contention by using more pools for mult-threaded programs.Otto Moerbeek
2016-05-07Use a Thread Information Block in both single and multi-threaded programs.Philip Guenther
2016-04-02Wrap <pthread.h> and <pthread_np.h> to eliminate PLT entries for internalPhilip Guenther
2016-04-02Eliminate the need to explicitly invoke syscalls via their _thread_sys_*Philip Guenther
2016-03-20Prepare for future ld.so/libc bump: update <tib.h> with the definitionsPhilip Guenther
2015-11-10Split the intra-thread functionality from kill(2) into its own syscallPhilip Guenther
2015-11-01delete old lint ARGSUSED commentsPhilip Guenther
2015-10-23Merge the sigaction() and sigprocmask() overloads/wrappers from libpthreadPhilip Guenther
2015-10-18ld.so no longer needs or uses a bind lock, so stop setting it. ThisPhilip Guenther
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