From: Mathieu Desnoyers Date: Tue, 30 Apr 2013 00:58:49 +0000 (-0400) Subject: Documentation: import updated comments from urcu X-Git-Tag: v2.2.0-rc2~28 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=a360c21993640e437109c3550fcb3b90f86e9484;p=lttng-tools.git Documentation: import updated comments from urcu Signed-off-by: Mathieu Desnoyers --- diff --git a/src/common/hashtable/rculfhash.h b/src/common/hashtable/rculfhash.h index b079c08e6..17cf6db84 100644 --- a/src/common/hashtable/rculfhash.h +++ b/src/common/hashtable/rculfhash.h @@ -178,6 +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. */ int cds_lfht_destroy(struct cds_lfht *ht, pthread_attr_t **attr); @@ -427,6 +429,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. */ void cds_lfht_resize(struct cds_lfht *ht, unsigned long new_size);