aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix semaphore destruction (bug 12674).Carlos O'Donell2015-01-211-4/+14
| | | | | | | | | | | | | 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
* Fix 9554ebf2d4da22591e974d3cf2ed09a2b8dbdbd8.Thomas Schwinge2012-03-081-2/+21
| | | | | | | Invalid timeouts in i386 sem_timedwait. | | We adjusted nwaiters even though this isn't necessary.
* Once again forgot to add new test file.Ulrich Drepper2009-11-241-0/+46