X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=urcu-qsbr-static.h;h=e49a04186104bbc2b3b769665a1fb6cb59fe7911;hb=1a43bbd8f98d5dcf1404b16ab4dc4bfddd65c3b0;hp=150bc09bbc8c1779598bf6fdf435284120225aed;hpb=48d848c7291ec22da6258ac03cd9c1dafec1fdfb;p=urcu.git diff --git a/urcu-qsbr-static.h b/urcu-qsbr-static.h index 150bc09..e49a041 100644 --- a/urcu-qsbr-static.h +++ b/urcu-qsbr-static.h @@ -41,10 +41,7 @@ #include #include #include - -#define futex(...) syscall(__NR_futex, __VA_ARGS__) -#define FUTEX_WAIT 0 -#define FUTEX_WAKE 1 +#include /* * This code section can only be included in LGPL 2.1 compatible source code. @@ -154,7 +151,7 @@ static inline void wake_up_gp(void) { if (unlikely(uatomic_read(&gp_futex) == -1)) { uatomic_set(&gp_futex, 0); - futex(&gp_futex, FUTEX_WAKE, 1, + futex_noasync(&gp_futex, FUTEX_WAKE, 1, NULL, NULL, 0); } }