diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-06-19 19:49:50 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-06-19 19:49:50 +0000 |
commit | 4e502c601d4522c846b779e82a1786469ea0a02d (patch) | |
tree | ab2304cb0a7007689b8fe920f76461ce7f03f19b /nptl/DESIGN-sem.txt | |
parent | a9c30e957767ee2108410da192114bfc9d35ad15 (diff) | |
download | glibc-4e502c601d4522c846b779e82a1786469ea0a02d.tar.gz glibc-4e502c601d4522c846b779e82a1786469ea0a02d.tar.xz glibc-4e502c601d4522c846b779e82a1786469ea0a02d.zip |
Make clear that futex_wake in sem_post gets passed the new value.
Diffstat (limited to 'nptl/DESIGN-sem.txt')
-rw-r--r-- | nptl/DESIGN-sem.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nptl/DESIGN-sem.txt b/nptl/DESIGN-sem.txt index d25a1c281d..17eb0c11c8 100644 --- a/nptl/DESIGN-sem.txt +++ b/nptl/DESIGN-sem.txt @@ -26,7 +26,8 @@ sem_wait(sem_t *sem) sem_post(sem_t *sem) { n = atomic_increment(sem->count); - futex_wake(&sem->count, n); + // Pass the new value of sem->count + futex_wake(&sem->count, n + 1); } sem_trywait(sem_t *sem) |