rcuja: document that destroy free_node_cb does not need to wait for Q.S.
[urcu.git] / urcu / rcuja.h
index 2a0de286256b46bb12dabe07d95c85151ed16ccf..421e8388eb563112c894d6897b6e990d1e772911 100644 (file)
@@ -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*()
This page took 0.023584 seconds and 4 git commands to generate.