projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update comments
[urcu.git]
/
urcu-static.h
diff --git
a/urcu-static.h
b/urcu-static.h
index 853c327d5eec3fb49b6e2ea4997c981379925571..5a75dde18630a84908f82b3096cb166a875b8ae6 100644
(file)
--- a/
urcu-static.h
+++ b/
urcu-static.h
@@
-56,10
+56,13
@@
extern "C" {
/* If the headers do not support SYS_membarrier, statically use RCU_MB */
#ifdef SYS_membarrier
/* 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_QUERY (1 << 16)
+# define membarrier(...) syscall(__NR_membarrier, __VA_ARGS__)
#else
#else
-#undef RCU_MEMBARRIER
-#define RCU_MB
+#
undef RCU_MEMBARRIER
+#
define RCU_MB
#endif
#endif
#endif
#endif
@@
-74,7
+77,12
@@
extern "C" {
/*
* The signal number used by the RCU library can be overridden with
* -DSIGRCU= when compiling the library.
/*
* The signal number used by the RCU library can be overridden with
* -DSIGRCU= when compiling the library.
+ * Provide backward compatibility for liburcu 0.3.x SIGURCU.
*/
*/
+#ifdef SIGURCU
+#define SIGRCU SIGURCU
+#endif
+
#ifndef SIGRCU
#define SIGRCU SIGUSR1
#endif
#ifndef SIGRCU
#define SIGRCU SIGUSR1
#endif
This page took
0.023294 seconds
and
4
git commands to generate.