mirror of https://github.com/mkerrisk/man-pages
futex.2: Rework the description of FUTEX_LOCK_PI2
Note the use of FUTEX_CLOCK_REALTIME for selecting the clock, and eliminate repetition of details already covered in the description of FUTEX_LOCK_PI. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
eeeee81162
commit
69bc3836cc
28
man2/futex.2
28
man2/futex.2
|
@ -1130,22 +1130,22 @@ arguments are ignored.
|
||||||
.TP
|
.TP
|
||||||
.BR FUTEX_LOCK_PI2 " (since Linux 5.14)"
|
.BR FUTEX_LOCK_PI2 " (since Linux 5.14)"
|
||||||
.\" commit bf22a6976897977b0a3f1aeba6823c959fc4fdae
|
.\" commit bf22a6976897977b0a3f1aeba6823c959fc4fdae
|
||||||
This operation works similar to
|
This operation is the same as
|
||||||
.BR FUTEX_LOCK_PI .
|
.BR FUTEX_LOCK_PI ,
|
||||||
The only difference is the
|
except that the clock against which
|
||||||
.I timeout
|
.I timeout
|
||||||
argument.
|
is measured is selectable.
|
||||||
.B FUTEX_LOCK_PI2
|
By default, the (absolute) timeout specified in
|
||||||
has support for selectable clocks.
|
|
||||||
.IP
|
|
||||||
If
|
|
||||||
.I timeout
|
.I timeout
|
||||||
is not NULL, the structure it points to specifies
|
is measured againt the
|
||||||
an absolute timeout.
|
.B CLOCK_MONOTONIC
|
||||||
If
|
clock, but if the
|
||||||
.I timeout
|
.B FUTEX_CLOCK_REALTIME
|
||||||
is NULL, the operation can block indefinitely.
|
flag is specified in
|
||||||
.IP
|
.IR futex_op ,
|
||||||
|
then the timeout is measured against the
|
||||||
|
.B CLOCK_REALTIME
|
||||||
|
clock.
|
||||||
.\"
|
.\"
|
||||||
.\""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
.\""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
.\"
|
.\"
|
||||||
|
|
Loading…
Reference in New Issue