summaryrefslogtreecommitdiff
path: root/src/thread
AgeCommit message (Collapse)AuthorFilesLines
2011-02-19make pthread_exit run dtors for last thread, wait to decrement thread countRich Felker1-3/+3
2011-02-18add pthread_atfork interfaceRich Felker1-0/+48
note that this presently does not handle consistency of the libc's own global state during forking. as per POSIX 2008, if the parent process was threaded, the child process may only call async-signal-safe functions until one of the exec-family functions is called, so the current behavior is believed to be conformant even if non-ideal. it may be improved at some later time.
2011-02-17reorganize pthread data structures and move the definitions to alltypes.hRich Felker23-83/+83
this allows sys/types.h to provide the pthread types, as required by POSIX. this design also facilitates forcing ABI-compatible sizes in the arch-specific alltypes.h, while eliminating the need for developers changing the internals of the pthread types to poke around with arch-specific headers they may not be able to test.
2011-02-16patch by njk, simplifies thread register initialization for x86_64Rich Felker1-4/+0
It's not necessary to save any registers on the stack across syscall in x86_64 __set_thread_area. Don't waste cycles or bytes on it.
2011-02-16patch from njk: make x86_64 __uniclone branchless.Rich Felker1-6/+6
2011-02-15Port musl to x86-64. One giant commit!Nicholas J. Kain3-0/+61
2011-02-15finish unifying thread register handling in preparation for portingRich Felker4-44/+25
2011-02-15begin unifying clone/thread management interface in preparation for portingRich Felker2-29/+19
2011-02-15make pthread_create return EAGAIN on resource failure, as required by POSIXRich Felker1-1/+1
2011-02-13reorganize thread exit code, make pthread_exit call cancellation handlers (pt2)Rich Felker2-22/+51
2011-02-13reorganize thread exit code, make pthread_exit call cancellation handlersRich Felker1-25/+0
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker70-0/+1030