Add get flavor to rculfhash
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 24 Aug 2016 20:16:08 +0000 (16:16 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 24 Aug 2016 20:16:45 +0000 (16:16 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/urcu/rculfhash.h
src/rculfhash.c

index 9934422ee9d6e1a4e737da18c73ba14c54dbbff7..4b698b70c3b3b2fe17e87ea3dd263a0505da6386 100644 (file)
@@ -447,6 +447,11 @@ int cds_lfht_is_node_deleted(struct cds_lfht_node *node);
 extern
 void cds_lfht_resize(struct cds_lfht *ht, unsigned long new_size);
 
+/*
+ * cds_lfht_rcu_flavor: get RCU flavor argument from hash table creation.
+ */
+const struct rcu_flavor_struct *cds_lfht_rcu_flavor(struct cds_lfht *ht);
+
 /*
  * Note: it is safe to perform element removal (del), replacement, or
  * any hash table update operation during any of the following hash
index d7a1f23bf8f766040341acbd18584246b5c327e4..e2cf1931e1e22df4e9d7381f706bcbb7a35c88a6 100644 (file)
@@ -2045,3 +2045,8 @@ void cds_lfht_resize_lazy_count(struct cds_lfht *ht, unsigned long size,
        }
        __cds_lfht_resize_lazy_launch(ht);
 }
+
+const struct rcu_flavor_struct *cds_lfht_rcu_flavor(struct cds_lfht *ht)
+{
+       return ht->flavor;
+}
This page took 0.026695 seconds and 4 git commands to generate.