mirror of https://github.com/mkerrisk/man-pages
futex.2: tfix
Signed-off-by: Jakub Wilk <jwilk@jwilk.net> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
1a3c3468bd
commit
67c67ff26b
|
@ -516,7 +516,7 @@ unlock(A);
|
||||||
If a waker thread used
|
If a waker thread used
|
||||||
.BR FUTEX_WAKE ,
|
.BR FUTEX_WAKE ,
|
||||||
then all waiters waiting on B would be woken up,
|
then all waiters waiting on B would be woken up,
|
||||||
and they would would all try to acquire lock A.
|
and they would all try to acquire lock A.
|
||||||
However, waking all of the threads in this manner would be pointless because
|
However, waking all of the threads in this manner would be pointless because
|
||||||
all except one of the threads would immediately block on lock A again.
|
all except one of the threads would immediately block on lock A again.
|
||||||
By contrast, a requeue operation wakes just one waiter and moves
|
By contrast, a requeue operation wakes just one waiter and moves
|
||||||
|
|
Loading…
Reference in New Issue