X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=include%2Furcu%2Frculfhash.h;h=c18cf5290763dde5f86efe101adf0c1af72f8857;hb=19ec56ca7d502f12dfb7f7d4299b506ba5abecce;hp=20b822fa8dddc572c5e114c31a1963f4ed499be3;hpb=afa5940dbe80a259cf8bc4a99403554a3c2c9e32;p=urcu.git diff --git a/include/urcu/rculfhash.h b/include/urcu/rculfhash.h index 20b822f..c18cf52 100644 --- a/include/urcu/rculfhash.h +++ b/include/urcu/rculfhash.h @@ -105,7 +105,7 @@ typedef int (*cds_lfht_match_fct)(struct cds_lfht_node *node, const void *key); * (detection of memory corruption). */ static inline -void cds_lfht_node_init(struct cds_lfht_node *node) +void cds_lfht_node_init(struct cds_lfht_node *node __attribute__((unused))) { } @@ -237,16 +237,16 @@ 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. + * * Prior to liburcu 0.10: - * - 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. It should *not* be called from a call_rcu thread * context neither. * * Starting from liburcu 0.10, rculfhash implements its own worker - * thread to handle resize operations, which removes RCU requirements on - * cds_lfht_destroy. + * thread to handle resize operations, which removes the above RCU + * read-side critical section requirement on cds_lfht_destroy. */ extern int cds_lfht_destroy(struct cds_lfht *ht, pthread_attr_t **attr);