summaryrefslogtreecommitdiff
path: root/src/thread/pthread_detach.c
AgeCommit message (Collapse)AuthorLines
2014-09-06use weak symbols for the POSIX functions that will be used by C threadsJens Gustedt-2/+6
The intent of this is to avoid name space pollution of the C threads implementation. This has two sides to it. First we have to provide symbols that wouldn't pollute the name space for the C threads implementation. Second we have to clean up some internal uses of POSIX functions such that they don't implicitly drag in such symbols.
2012-07-12fix several locks that weren't updated right for new futex-based __lockRich Felker-2/+2
these could have caused memory corruption due to invalid accesses to the next field. all should be fixed now; I found the errors with fgrep -r '__lock(&', which is bogus since the argument should be an array.
2012-07-11fix potential race condition in detached threadsRich Felker-2/+2
after the thread unmaps its own stack/thread structure, the kernel, performing child tid clear and futex wake, could clobber a new mapping made at the same location as the just-removed thread's tid field. disable kernel clearing of child tid to prevent this.
2011-09-16fix more instances of old a_xchg (use new a_swap name)Rich Felker-1/+1
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker-0/+11