summaryrefslogtreecommitdiff
path: root/lib/librthread/rthread.c
AgeCommit message (Expand)Author
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
2006-01-06Initialize thread debug in _rthread_init. The debug verbosityMarco S Hyman
2006-01-06guess it's time to remove the init printf; sturm found a port thatTed Unangst
2006-01-05In pthread_join(), check if we create a deadlock trying to joinOtto Moerbeek
2006-01-05move malloc lock to libc interface fileTed Unangst
2006-01-05add -Wstrict-prototypes -Wmissing-prototypes -Wsign-compareMarco S Hyman
2006-01-04Cleanup struct pthread and stack after thread exits. This version doesOtto Moerbeek
2006-01-04allow threads to be created in a detached stateMarco S Hyman
2006-01-01thread stack handling changes. Add guard zones and allow stackMarco S Hyman
2005-12-31Implement suspend/resume and creation of initially suspended threads.Otto Moerbeek
2005-12-30Remove exitinng thread from the list of threads. ok tedu@Otto Moerbeek