X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=urcu%2Frculfhash.h;h=9c382120111c34d31d86fd80e9206d575626534a;hb=7b413155ff4babb1ce86ab0441242e39b43509fa;hp=0a8abff3c7d226bb6e38873569edc480cee07013;hpb=b9c2790452412b7dc3bc1eba2675afc6912f9a1e;p=userspace-rcu.git diff --git a/urcu/rculfhash.h b/urcu/rculfhash.h index 0a8abff..9c38212 100644 --- a/urcu/rculfhash.h +++ b/urcu/rculfhash.h @@ -439,6 +439,8 @@ int cds_lfht_is_node_deleted(struct cds_lfht_node *node); * * Threads calling this API need to be registered RCU read-side threads. * This function does not (necessarily) issue memory barriers. + * cds_lfht_resize should *not* be called from a RCU read-side critical + * section. */ extern void cds_lfht_resize(struct cds_lfht *ht, unsigned long new_size); @@ -482,6 +484,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