X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Frculfhash.h;h=e650acdf83c91e9357beab3d224136cbf8ca3c92;hp=d671af3e35ecc9b0e57a7955902ac230e244c987;hb=273399de2e11da5cfea7b412a4bdd904467e9126;hpb=7ec59d3b56b9a40d2d3027ad90800c9471ae3337 diff --git a/urcu/rculfhash.h b/urcu/rculfhash.h index d671af3..e650acd 100644 --- a/urcu/rculfhash.h +++ b/urcu/rculfhash.h @@ -46,6 +46,10 @@ struct rcu_ht *ht_new(ht_hash_fct hash_fct, void (*func)(struct rcu_head *head))); int ht_destroy(struct rcu_ht *ht); +/* Count the number of nodes in the hash table. Call with rcu_read_lock held. */ +void ht_count_nodes(struct rcu_ht *ht, + unsigned long *count, + unsigned long *removed); /* Call with rcu_read_lock held. */ struct rcu_ht_node *ht_lookup(struct rcu_ht *ht, void *key, size_t key_len);