futex.h: Use urcu_posix_assert to validate unused values
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 3 Jun 2024 14:10:49 +0000 (10:10 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 3 Jun 2024 14:10:49 +0000 (10:10 -0400)
commite463c38f0ec65d06e544681d1916991808a6a2b9
treec3a8ecb2ad16d2be64cafe2d0080f033a0b055b1
parente9af364c26b0e474b87a7fe5fb2222a399f8e180
futex.h: Use urcu_posix_assert to validate unused values

When building on FreeBSD, uaddr2 and val3 are unused. Add a
urcu_posix_assert() to validate that they are zero and hence allow users
of the API to quickly figure out that those are not effectively used.

When building on OpenBSD, val3 is unused. Add a urcu_posix_assert() to
validate that it is zero.

Those asserts are already present in the compat code. Use the same
mechanism to prevent users from expecting futex arguments to be used
when they are in fact discarded.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I4e69d240c6f07da471e6af083854440c060ef53b
include/urcu/futex.h
This page took 0.025392 seconds and 4 git commands to generate.