about summary refs log tree commit diff
path: root/nptl
diff options
context:
space:
mode:
Diffstat (limited to 'nptl')
-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)