about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-02-09 16:54:58 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-02-09 16:54:58 +0000
commit900778283ac3cfbd274abc55840b5cdae9b7745f (patch)
treec979fd4dd609ae9e31eb788b0d3a098bf793250d
parente622ce98c58b61e1c61dc7ff0c8b3f9ba23c3d9a (diff)
downloadglibc-900778283ac3cfbd274abc55840b5cdae9b7745f.tar.gz
glibc-900778283ac3cfbd274abc55840b5cdae9b7745f.tar.xz
glibc-900778283ac3cfbd274abc55840b5cdae9b7745f.zip
htl: make pthread_spin_lock really spin
__spin_lock would actually use gsync_wait to block, which is not what
pthread_spin_lock is about.
-rw-r--r--sysdeps/mach/htl/bits/spin-lock-inline.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/mach/htl/bits/spin-lock-inline.h b/sysdeps/mach/htl/bits/spin-lock-inline.h
index 771292f08f..556bdd4c28 100644
--- a/sysdeps/mach/htl/bits/spin-lock-inline.h
+++ b/sysdeps/mach/htl/bits/spin-lock-inline.h
@@ -67,7 +67,7 @@ __PT_SPIN_INLINE int __pthread_spin_lock (__pthread_spinlock_t *__lock);
 __PT_SPIN_INLINE int
 __pthread_spin_lock (__pthread_spinlock_t *__lock)
 {
-  __spin_lock ((__spin_lock_t *) __lock);
+  __spin_lock_solid ((__spin_lock_t *) __lock);
   return 0;
 }