X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu-static.h;fp=urcu-static.h;h=44bcd073710e3e98d760c667eb7aa787238bb3ff;hp=853c327d5eec3fb49b6e2ea4997c981379925571;hb=f0708810fe66d7fdcf52903c607ed65c9fa664c7;hpb=fdf01eeda9f634a32db3fc90cd342da08d7a259d diff --git a/urcu-static.h b/urcu-static.h index 853c327..44bcd07 100644 --- a/urcu-static.h +++ b/urcu-static.h @@ -56,10 +56,12 @@ extern "C" { /* If the headers do not support SYS_membarrier, statically use RCU_MB */ #ifdef SYS_membarrier -#define membarrier(...) syscall(__NR_membarrier, __VA_ARGS__) +# define MEMBARRIER_EXPEDITED (1 << 0) +# define MEMBARRIER_DELAYED (1 << 1) +# define membarrier(...) syscall(__NR_membarrier, __VA_ARGS__) #else -#undef RCU_MEMBARRIER -#define RCU_MB +# undef RCU_MEMBARRIER +# define RCU_MB #endif #endif