X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Frculfhash.h;h=e650acdf83c91e9357beab3d224136cbf8ca3c92;hp=d671af3e35ecc9b0e57a7955902ac230e244c987;hb=9dba85be054385dbb40d02631baffdcb735114a4;hpb=cb2337522f4a0a7f3200daff65c537482c67b434 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);