Make clear that futex_wake in sem_post gets passed the new value.

This commit is contained in:
Ulrich Drepper 2003-06-19 19:49:50 +00:00
parent a9c30e9577
commit 4e502c601d

View 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)