Add __rcu annotation (unimplemented)
[urcu.git] / urcu / compiler.h
index f8fce5a6b46558fa4a4b2d50f78f91eecf229c90..4bced2a9849846a25b8c1fd59a15cd2b03af0060 100644 (file)
 #define CAA_BUILD_BUG_ON_ZERO(cond) (sizeof(struct { int:-!!(cond); }))
 #define CAA_BUILD_BUG_ON(cond) ((void)BUILD_BUG_ON_ZERO(cond))
 
+/*
+ * __rcu is an annotation that documents RCU pointer accesses that need
+ * to be protected by a read-side critical section. Eventually, a static
+ * checker will be able to use this annotation to detect incorrect RCU
+ * usage.
+ */
+#define __rcu
+
 #endif /* _URCU_COMPILER_H */
This page took 0.022223 seconds and 4 git commands to generate.