summary refs log tree commit diff
path: root/nptl/DESIGN-sem.txt
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-06-19 19:49:50 +0000
committerUlrich Drepper <drepper@redhat.com>2003-06-19 19:49:50 +0000
commit4e502c601d4522c846b779e82a1786469ea0a02d (patch)
treeab2304cb0a7007689b8fe920f76461ce7f03f19b /nptl/DESIGN-sem.txt
parenta9c30e957767ee2108410da192114bfc9d35ad15 (diff)
downloadglibc-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.txt3
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)