| Commit message (Expand) | Author | Age | Files | Lines |
| * | add C11 thread creation and related thread functions•••based on patch by Jens Gustedt.
the main difficulty here is handling the difference between start
function signatures and thread return types for C11 threads versus
POSIX threads. pointers to void are assumed to be able to represent
faithfully all values of int. the function pointer for the thread
start function is cast to an incorrect type for passing through
pthread_create, but is cast back to its correct type before calling so
that the behavior of the call is well-defined.
changes to the existing threads implementation were kept minimal to
reduce the risk of regressions, and duplication of code that carries
implementation-specific assumptions was avoided for ease and safety of
future maintenance.
| Rich Felker | 2014-09-07 | 1 | -1/+3 |
| * | use weak symbols for the POSIX functions that will be used by C threads•••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.
| Jens Gustedt | 2014-09-06 | 1 | -2/+6 |
| * | fix several locks that weren't updated right for new futex-based __lock•••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.
| Rich Felker | 2012-07-12 | 1 | -2/+2 |
| * | fix potential race condition in detached threads•••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.
| Rich Felker | 2012-07-11 | 1 | -2/+2 |
| * | fix more instances of old a_xchg (use new a_swap name) | Rich Felker | 2011-09-16 | 1 | -1/+1 |
| * | initial check-in, version 0.5.0 | Rich Felker | 2011-02-12 | 1 | -0/+11 |