*/
#include <pthread.h>
+#include <stdio.h>
+#include <inttypes.h>
#include <urcu/rculfhash.h>
/* Never declared. Opaque type used to store flagged node pointers. */
__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")))
__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 */