X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=urcu%2Ffutex.h;h=4d30faa31fad6d576af58a65ca75da6f135f526d;hb=0144e9596291c9498b3930ffb94fdd3e7c6374ae;hp=906d9b723ae88481fc7874e1409dc24dd80f35eb;hpb=3282a76b46b74a92809292fa63ba671de9ad88eb;p=userspace-rcu.git diff --git a/urcu/futex.h b/urcu/futex.h index 906d9b7..4d30faa 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)