X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=rculfhash.c;h=b90a07acc46a31746fe28bcf2afdf5d8e4e5e5bb;hb=7d5dc80de0522da1b8bc3656646ea39c15481594;hp=b114e0c1e3f5e9afe56e985da2f6122551cc1f4f;hpb=79d5479e9f6dfe097fc24b0ddf2fe7fd1ba0f43b;p=urcu.git diff --git a/rculfhash.c b/rculfhash.c index b114e0c..b90a07a 100644 --- a/rculfhash.c +++ b/rculfhash.c @@ -150,12 +150,14 @@ */ #define _LGPL_SOURCE +#define _GNU_SOURCE #include #include #include #include #include #include +#include #include "config.h" #include @@ -1553,6 +1555,11 @@ int cds_lfht_del(struct cds_lfht *ht, struct cds_lfht_node *node) return ret; } +int cds_lfht_is_node_deleted(struct cds_lfht_node *node) +{ + return is_removed(rcu_dereference(node->next)); +} + static int cds_lfht_delete_bucket(struct cds_lfht *ht) {