X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=include%2Furcu%2Frculfhash.h;h=69608794a7628c8f409199c63153d8bf0052edf7;hb=6bcce2356ba83372b1ca481ace59f5d489e269f2;hp=9934422ee9d6e1a4e737da18c73ba14c54dbbff7;hpb=6893800a4d1cc14dff0395ddcd660a5138db183d;p=urcu.git diff --git a/include/urcu/rculfhash.h b/include/urcu/rculfhash.h index 9934422..6960879 100644 --- a/include/urcu/rculfhash.h +++ b/include/urcu/rculfhash.h @@ -27,8 +27,8 @@ */ #include +#include #include -#include #include #ifdef __cplusplus @@ -176,10 +176,17 @@ struct cds_lfht *cds_lfht_new(unsigned long init_size, * need to be informed of the value passed to cds_lfht_new(). * * 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. It should *not* be called from a call_rcu thread context - * neither. + + * 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. */ extern int cds_lfht_destroy(struct cds_lfht *ht, pthread_attr_t **attr);