X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Fcompiler.h;fp=urcu%2Fcompiler.h;h=4bced2a9849846a25b8c1fd59a15cd2b03af0060;hp=f8fce5a6b46558fa4a4b2d50f78f91eecf229c90;hb=dc53e23e90262674fe23889bf1cea28b27288837;hpb=a00718e7e5df2c582de11fbd6be3d9420ad6c0e3 diff --git a/urcu/compiler.h b/urcu/compiler.h index f8fce5a..4bced2a 100644 --- a/urcu/compiler.h +++ b/urcu/compiler.h @@ -71,4 +71,12 @@ #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 */