about summary refs log tree commit diff
path: root/nptl/sysdeps/pthread/pthread_rwlock_unlock.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/sysdeps/pthread/pthread_rwlock_unlock.c')
-rw-r--r--nptl/sysdeps/pthread/pthread_rwlock_unlock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nptl/sysdeps/pthread/pthread_rwlock_unlock.c b/nptl/sysdeps/pthread/pthread_rwlock_unlock.c
index 325007e5b3..6e0c92ba3f 100644
--- a/nptl/sysdeps/pthread/pthread_rwlock_unlock.c
+++ b/nptl/sysdeps/pthread/pthread_rwlock_unlock.c
@@ -35,12 +35,12 @@ int __pthread_rwlock_unlock (pthread_rwlock_t *rwlock)
     {
       if (rwlock->__data.__nr_writers_queued)
 	{
-	  rwlock->__data.__writer_wakeup = 1;
+	  ++rwlock->__data.__writer_wakeup;
 	  lll_futex_wake(&rwlock->__data.__writer_wakeup, 1);
 	}
       else
 	{
-	  rwlock->__data.__readers_wakeup = 1;
+	  ++rwlock->__data.__readers_wakeup;
 	  lll_futex_wake(&rwlock->__data.__readers_wakeup, INT_MAX);
 	}
     }