rcuja: fix randomness seed (per-thread), use u64 keyspace for random range
[userspace-rcu.git] / urcu / rculfhash.h
index 4d50f08ee892803fa4762ba266846ee067fc9d01..4c400ce81e5b534fcef71b6fec40142ac27ecea4 100644 (file)
@@ -177,7 +177,8 @@ struct cds_lfht *cds_lfht_new(unsigned long init_size,
  * Return 0 on success, negative error value on error.
  * Threads calling this API need to be registered RCU read-side threads.
  * cds_lfht_destroy should *not* be called from a RCU read-side critical
- * section.
+ * section. It should *not* be called from a call_rcu thread context
+ * neither.
  */
 extern
 int cds_lfht_destroy(struct cds_lfht *ht, pthread_attr_t **attr);
@@ -484,6 +485,11 @@ void cds_lfht_resize(struct cds_lfht *ht, unsigned long new_size);
                        pos = caa_container_of(cds_lfht_iter_get_node(iter), \
                                        __typeof__(*(pos)), member))
 
+/*
+ * 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);
+
 #ifdef __cplusplus
 }
 #endif
This page took 0.022679 seconds and 4 git commands to generate.