diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-02-24 09:23:15 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-02-24 09:23:15 +0000 |
commit | 18a535792b7a63721a123e152266c4b8cf1fae8e (patch) | |
tree | b86a475d52a5cade9e9820808a7d8f165cf081aa /nptl/sysdeps/pthread/pthread_rwlock_unlock.c | |
parent | 3724f268b15bdbd322cda97f88a965a68f2fd3ef (diff) | |
download | glibc-18a535792b7a63721a123e152266c4b8cf1fae8e.tar glibc-18a535792b7a63721a123e152266c4b8cf1fae8e.tar.gz glibc-18a535792b7a63721a123e152266c4b8cf1fae8e.tar.bz2 glibc-18a535792b7a63721a123e152266c4b8cf1fae8e.zip |
Update.
* sysdeps/pthread/pthread_rwlock_rdlock.c: Likewise.
* sysdeps/pthread/pthread_rwlock_timedrdlock.c: Likewise.
* sysdeps/pthread/pthread_rwlock_timedwrlock.c: Likewise.
* sysdeps/pthread/pthread_rwlock_unlock.c: Likewise.
* sysdeps/pthread/pthread_rwlock_wrlock.c: Likewise.
Diffstat (limited to 'nptl/sysdeps/pthread/pthread_rwlock_unlock.c')
-rw-r--r-- | nptl/sysdeps/pthread/pthread_rwlock_unlock.c | 4 |
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); } } |