futex.2: Clarify clock default and choices for FUTEX_WAIT

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-06-24 08:39:40 +02:00
parent 2c0cac3e00
commit a01c3098e8
1 changed files with 8 additions and 2 deletions

View File

@ -301,9 +301,15 @@ value change and will not start to sleep.
If the
.I timeout
is not NULL, the structure it points to specifies
a relative timeout for the wait, measured according to the
a relative timeout for the wait.
This timeout is by default measured according to the
.BR CLOCK_MONOTONIC
clock.
clock, but, since Linux 4.5, the
.BR CLOCK_REALTIME
clock can be selected by specifying
.BR FUTEX_CLOCK_REALTIME
in
.IR futex_op .
(This interval will be rounded up to the system clock granularity,
and is guaranteed not to expire early.)
If