]> sourceware.org Git - glibc.git/commit
hurd: Add __pthread_spin_wait and use it
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 10 Feb 2020 22:06:33 +0000 (23:06 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 10 Feb 2020 23:32:44 +0000 (00:32 +0100)
commit8ba6ad703cb38ec57cdb473650ac289e5f8496d5
tree843104571af29b6872721b6477d3b2e2444a3e96
parentcd7965bd970b0a298e734acc9dafae0a5db5f712
hurd: Add __pthread_spin_wait and use it

900778283ac3 ("htl: make pthread_spin_lock really spin") made
pthread_spin_lock really spin and not block, but the current users of
__pthread_spin_lock were assuming that it blocks, i.e. they use it as a
lightweight mutex fitting in just one int.

__pthread_spin_wait provides that support back.
17 files changed:
sysdeps/htl/pt-barrier-wait.c
sysdeps/htl/pt-cond-brdcast.c
sysdeps/htl/pt-cond-destroy.c
sysdeps/htl/pt-cond-signal.c
sysdeps/htl/pt-cond-timedwait.c
sysdeps/htl/pt-once.c
sysdeps/htl/pt-rwlock-timedrdlock.c
sysdeps/htl/pt-rwlock-timedwrlock.c
sysdeps/htl/pt-rwlock-tryrdlock.c
sysdeps/htl/pt-rwlock-trywrlock.c
sysdeps/htl/pt-rwlock-unlock.c
sysdeps/htl/sem-getvalue.c
sysdeps/htl/sem-post.c
sysdeps/htl/sem-timedwait.c
sysdeps/htl/sem-trywait.c
sysdeps/mach/htl/bits/spin-lock-inline.h
sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c
This page took 1.598862 seconds and 5 git commands to generate.