X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=rcuja%2Frcuja-internal.h;h=67d121bcda21722f35ec6e2cdc50993aefc5e9a9;hb=a2a7ff599330d13b146409b95cf054a71114c338;hp=027780833845917502cbcd4e217e269d9d4a21dc;hpb=44151f8911a4fa6acec61f05116f0a534a1c3411;p=userspace-rcu.git diff --git a/rcuja/rcuja-internal.h b/rcuja/rcuja-internal.h index 0277808..67d121b 100644 --- a/rcuja/rcuja-internal.h +++ b/rcuja/rcuja-internal.h @@ -24,6 +24,8 @@ */ #include +#include +#include #include /* Never declared. Opaque type used to store flagged node pointers. */ @@ -79,6 +81,7 @@ enum { __attribute__((visibility("protected"))) int rcuja_shadow_clear(struct cds_lfht *ht, struct cds_ja_inode *node, + struct cds_ja_shadow_node *shadow_node, unsigned int flags); __attribute__((visibility("protected"))) @@ -91,4 +94,17 @@ struct cds_lfht *rcuja_create_ht(const struct rcu_flavor_struct *flavor); __attribute__((visibility("protected"))) int rcuja_delete_ht(struct cds_lfht *ht); +#define DEBUG + +#ifdef DEBUG +#define dbg_printf(fmt, args...) printf("[debug rcuja] " fmt, ## args) +#else +#define dbg_printf(fmt, args...) \ +do { \ + /* do nothing but check printf format */ \ + if (0) \ + printf("[debug rcuja] " fmt, ## args); \ +} while (0) +#endif + #endif /* _URCU_RCUJA_INTERNAL_H */