aboutsummaryrefslogtreecommitdiff
path: root/nptl/sem_timedwait.c
AgeCommit message (Collapse)AuthorFilesLines
2015-01-21Fix semaphore destruction (bug 12674).Carlos O'Donell1-88/+8
This commit fixes semaphore destruction by either using 64b atomic operations (where available), or by using two separate fields when only 32b atomic operations are available. In the latter case, we keep a conservative estimate of whether there are any waiting threads in one bit of the field that counts the number of available tokens, thus allowing sem_post to atomically both add a token and determine whether it needs to call futex_wake. See: https://sourceware.org/ml/libc-alpha/2014-12/msg00155.html
2015-01-02Update copyright dates with scripts/update-copyrights.Joseph Myers1-1/+1
2014-10-20NPTL: Add some missing #include'sRoland McGrath1-0/+1
2014-07-07Get rid of nptl/sysdeps/ entirely!Roland McGrath1-0/+116