mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-01 01:00:10 +00:00
042e1521c7
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 |
||
---|---|---|
.. | ||
dl-sysdep.h | ||
Implies | ||
libc-lowlevellock.S | ||
lowlevellock.S | ||
lowlevelrobustlock.S | ||
pthread_barrier_wait.S | ||
pthread_cond_broadcast.S | ||
pthread_cond_signal.S | ||
pthread_cond_timedwait.S | ||
pthread_cond_wait.S | ||
sysconf.c |