X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=include%2Furcu%2Frculfhash.h;h=8586e1da371f86e2c19518f60a8cef69e6db691e;hp=20b822fa8dddc572c5e114c31a1963f4ed499be3;hb=d428afc44ee5aa598c8033939ae1c1ac806f1a15;hpb=afa5940dbe80a259cf8bc4a99403554a3c2c9e32 diff --git a/include/urcu/rculfhash.h b/include/urcu/rculfhash.h index 20b822f..8586e1d 100644 --- a/include/urcu/rculfhash.h +++ b/include/urcu/rculfhash.h @@ -105,10 +105,20 @@ typedef int (*cds_lfht_match_fct)(struct cds_lfht_node *node, const void *key); * (detection of memory corruption). */ static inline -void cds_lfht_node_init(struct cds_lfht_node *node) +void cds_lfht_node_init(struct cds_lfht_node *node __attribute__((unused))) { } +/* + * cds_lfht_node_init_deleted - initialize a hash table node to "removed" state + * @node: the node to initialize. + * + * Initialize the node such that cds_lfht_is_node_deleted() can be used + * on the node before it is added to a hash table. + */ +extern +void cds_lfht_node_init_deleted(struct cds_lfht_node *node); + /* * Hash table creation flags. */