diff options
Diffstat (limited to 'sysdeps/htl/pt-rwlock-trywrlock.c')
-rw-r--r-- | sysdeps/htl/pt-rwlock-trywrlock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/htl/pt-rwlock-trywrlock.c b/sysdeps/htl/pt-rwlock-trywrlock.c index 95593a97b9..423f7faf0f 100644 --- a/sysdeps/htl/pt-rwlock-trywrlock.c +++ b/sysdeps/htl/pt-rwlock-trywrlock.c @@ -25,7 +25,7 @@ int pthread_rwlock_trywrlock (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. */ { |