rcuja: various fixes
[userspace-rcu.git] / rcuja / rcuja-internal.h
index 027780833845917502cbcd4e217e269d9d4a21dc..67d121bcda21722f35ec6e2cdc50993aefc5e9a9 100644 (file)
@@ -24,6 +24,8 @@
  */
 
 #include <pthread.h>
+#include <stdio.h>
+#include <inttypes.h>
 #include <urcu/rculfhash.h>
 
 /* 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 */
This page took 0.023367 seconds and 4 git commands to generate.