futex.2: tfix

In the comment of the example program, the peer blocks on fwait()
rather than fpost().

Signed-off-by: Jing Peng <pj.hades@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Jing Peng 2020-11-21 16:08:30 -05:00 committed by Michael Kerrisk
parent fd97f2fe65
commit e2c751049c
1 changed files with 1 additions and 1 deletions

View File

@ -1809,7 +1809,7 @@ fwait(uint32_t *futexp)
/* Release the futex pointed to by \(aqfutexp\(aq: if the futex currently
has the value 0, set its value to 1 and the wake any futex waiters,
so that if the peer is blocked in fpost(), it can proceed. */
so that if the peer is blocked in fwait(), it can proceed. */
static void
fpost(uint32_t *futexp)