mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 10:50:07 +00:00
Make clear that futex_wake in sem_post gets passed the new value.
This commit is contained in:
parent
a9c30e9577
commit
4e502c601d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user