about summary refs log tree commit diff
path: root/sysdeps/htl/pt-rwlock-tryrdlock.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/htl/pt-rwlock-tryrdlock.c')
-rw-r--r--sysdeps/htl/pt-rwlock-tryrdlock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/htl/pt-rwlock-tryrdlock.c b/sysdeps/htl/pt-rwlock-tryrdlock.c
index 7baef3cccb..897528f24c 100644
--- a/sysdeps/htl/pt-rwlock-tryrdlock.c
+++ b/sysdeps/htl/pt-rwlock-tryrdlock.c
@@ -25,7 +25,7 @@
 int
 pthread_rwlock_tryrdlock (struct __pthread_rwlock *rwlock)
 {
-  __pthread_spin_lock (&rwlock->__lock);
+  __pthread_spin_wait (&rwlock->__lock);
   if (__pthread_spin_trylock (&rwlock->__held) == 0)
     /* Successfully acquired the lock.  */
     {