FUTEX_LOCK_PI22const
Lock a priority‐inheritance futex
Usage
#include <linux/futex.h> /* Definition of FUTEX_* constants */ #include <sys/syscall.h> /* Definition of SYS_* constants */ #include <unistd.h>
long syscall(SYS_futex, uint32_t *uaddr, FUTEX_LOCK_PI2, 0, const struct timespec *timeout);
Library
Standard C library (libc, -lc)
Overview
This operation is the same as FUTEX_LOCK_PI(2const), except that the clock against which timeout is measured is selectable.
By default, the (absolute) timeout specified in timeout is measured against the CLOCK_MONOTONIC clock.