From 4e502c601d4522c846b779e82a1786469ea0a02d Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 19 Jun 2003 19:49:50 +0000 Subject: Make clear that futex_wake in sem_post gets passed the new value. --- nptl/DESIGN-sem.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nptl/DESIGN-sem.txt') 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) -- cgit 1.4.1