X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Ffutex.h;h=2be3bb6c1dc96e5ee71d932f9a2ae7f5221d901b;hp=906d9b723ae88481fc7874e1409dc24dd80f35eb;hb=b0a841b4ff807dd29fe0cdbfe24900312f0e627b;hpb=3282a76b46b74a92809292fa63ba671de9ad88eb diff --git a/urcu/futex.h b/urcu/futex.h index 906d9b7..2be3bb6 100644 --- a/urcu/futex.h +++ b/urcu/futex.h @@ -42,10 +42,13 @@ extern "C" { * * futex_async is signal-handler safe for the wakeup. It uses polling * on the wait-side in compatibility mode. + * + * BEWARE: sys_futex() FUTEX_WAIT may return early if interrupted + * (returns EINTR). */ #ifdef CONFIG_RCU_HAVE_FUTEX -#include +#include #define futex(...) syscall(__NR_futex, __VA_ARGS__) #define futex_noasync(uaddr, op, val, timeout, uaddr2, val3) \ futex(uaddr, op, val, timeout, uaddr2, val3)