X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=urcu%2Frcuja.h;h=421e8388eb563112c894d6897b6e990d1e772911;hb=dc0e9798320a244262c504c47f34af058bc1ebb3;hp=2a0de286256b46bb12dabe07d95c85151ed16ccf;hpb=d8536f92244c14455fb90fdd06cb4628d65acf32;p=urcu.git diff --git a/urcu/rcuja.h b/urcu/rcuja.h index 2a0de28..421e838 100644 --- a/urcu/rcuja.h +++ b/urcu/rcuja.h @@ -143,11 +143,13 @@ struct cds_ja *cds_ja_new(unsigned int key_bits) * @rcu_free_node_cb: callback performing memory free of leftover nodes. * * Returns 0 on success, negative error value on error. - * The @rcu_free_node_cb callback should internally wait for a grace - * period before freeing the node. + * There should be no more concurrent add, delete, nor look-up performed + * on the Judy array while it is being destroyed (ensured by the caller). + * There is no need for the @rcu_free_node_cb callback to wait for grace + * periods, since there are no more concurrent users of the Judy array. */ int cds_ja_destroy(struct cds_ja *ja, - void (*rcu_free_node_cb)(struct cds_ja_node *node)); + void (*free_node_cb)(struct cds_ja_node *node)); /* * Iterate through duplicates returned by cds_ja_lookup*()