Add __rcu annotation (unimplemented)
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 3 Sep 2011 12:37:22 +0000 (08:37 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 3 Sep 2011 12:37:22 +0000 (08:37 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
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.024908 seconds and 4 git commands to generate.