diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2011-11-27 18:39:25 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2011-11-27 18:39:25 +0100 |
commit | db7bf9590dc08a72de9a9c46db7937188156fa2e (patch) | |
tree | e78cecd5099958ec7bfb645cebb8bae1722a3cfa /sysdeps/generic/pt-attr-getdetachstate.c | |
parent | 1d5bf69f1abd4bb556688b5af9ec2973fd5b3943 (diff) |
Fix __mutex_unlock_solid safety
libc releases the spinlock before calling __mutex_unlock_solid, so we have to
try to reacquire it before possibly giving it to some blocked thread.
* pthread/cthreads-compat.c (__mutex_unlock_solid): Call
__pthread_spin_trylock before calling __pthread_mutex_unlock.
Diffstat (limited to 'sysdeps/generic/pt-attr-getdetachstate.c')
0 files changed, 0 insertions, 0 deletions