]> sourceware.org Git - glibc.git/commitdiff
Make clear that futex_wake in sem_post gets passed the new value.
authorUlrich Drepper <drepper@redhat.com>
Thu, 19 Jun 2003 19:49:50 +0000 (19:49 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 19 Jun 2003 19:49:50 +0000 (19:49 +0000)
nptl/DESIGN-sem.txt

index d25a1c281d195dec50364ca9289f26e9efd1ec94..17eb0c11c876dc8677c22ee74f461f82fdded61d 100644 (file)
@@ -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)
This page took 0.042799 seconds and 5 git commands to generate.