Support for sys_futex autodetection
[urcu.git] / urcu-qsbr-static.h
index 150bc09bbc8c1779598bf6fdf435284120225aed..e49a04186104bbc2b3b769665a1fb6cb59fe7911 100644 (file)
 #include <urcu/system.h>
 #include <urcu/uatomic_arch.h>
 #include <urcu/list.h>
-
-#define futex(...)             syscall(__NR_futex, __VA_ARGS__)
-#define FUTEX_WAIT             0
-#define FUTEX_WAKE             1
+#include <urcu/urcu-futex.h>
 
 /*
  * 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);
        }
 }
This page took 0.022245 seconds and 4 git commands to generate.