summaryrefslogtreecommitdiff
path: root/src/thread/pthread_create.c
AgeCommit message (Collapse)AuthorFilesLines
2011-03-12implement flockfile api, rework stdio lockingRich Felker1-0/+1
2011-03-10optimize pthread termination in the non-detached caseRich Felker1-4/+15
we can avoid blocking signals by simply using a flag to mark that the thread has exited and prevent it from getting counted in the rsyscall signal-pingpong. this restores the original pthread create/join throughput from before the sigprocmask call was added.
2011-03-10security fix: check that cancel/rsyscall signal was sent by the process itselfRich Felker1-0/+3
2011-02-19use rt_sigprocmask, not legacy sigprocmask, syscall in pthread exit codeRich Felker1-1/+1
2011-02-19race condition fix: block all signals before decrementing thread countRich Felker1-0/+2
the existence of a (kernelspace) thread must never have observable effects after the thread count is decremented. if signals are not blocked, it could end up handling the signal for rsyscall and contributing towards the count of threads which have changed ids, causing a thread to be missed. this could lead to one thread retaining unwanted privilege level. this change may also address other subtle race conditions in application code that uses signals.
2011-02-19make pthread_exit run dtors for last thread, wait to decrement thread countRich Felker1-3/+3
2011-02-17reorganize pthread data structures and move the definitions to alltypes.hRich Felker1-3/+3
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-15begin unifying clone/thread management interface in preparation for portingRich Felker1-4/+2
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 Felker1-13/+50
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker1-0/+189