X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Frculfhash.h;h=7a411ad688ee92cbd753a7f04f798f355179beca;hp=4d50f08ee892803fa4762ba266846ee067fc9d01;hb=28d5c1b5f2bdbb630c4aafa35c9b6e0d58542c73;hpb=43387742bc856603330eb530094a702d847503a0 diff --git a/urcu/rculfhash.h b/urcu/rculfhash.h index 4d50f08..7a411ad 100644 --- a/urcu/rculfhash.h +++ b/urcu/rculfhash.h @@ -133,7 +133,8 @@ struct cds_lfht *_cds_lfht_new(unsigned long init_size, * @min_nr_alloc_buckets: the minimum number of allocated buckets. * (must be power of two) * @max_nr_buckets: the maximum number of hash table buckets allowed. - * (must be power of two) + * (must be power of two, 0 is accepted, means + * "infinite") * @flags: hash table creation flags (can be combined with bitwise or: '|'). * 0: no flags. * CDS_LFHT_AUTO_RESIZE: automatically resize hash table. @@ -177,7 +178,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);