X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=urcu%2Frculfqueue.h;h=fbef6f9763e4b3525f9a844b462a337ce1dcce8e;hb=e753ff5a11ef55102e11f92376ec3addbc2d9726;hp=55f15f82cd7e408dc1477d3517c979670a6bb047;hpb=d9b52143813e104eeee1e3d90061042230b7b5bf;p=urcu.git diff --git a/urcu/rculfqueue.h b/urcu/rculfqueue.h index 55f15f8..fbef6f9 100644 --- a/urcu/rculfqueue.h +++ b/urcu/rculfqueue.h @@ -23,7 +23,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include +#include #include #ifdef __cplusplus @@ -57,9 +57,9 @@ struct cds_lfq_queue_rcu { #ifdef _LGPL_SOURCE -#include +#include -#define cds_lfq_node_init_rcu _cds_lfq_node_init_rcu +#define cds_lfq_node_init_rcu _cds_lfq_node_init_rcu #define cds_lfq_init_rcu _cds_lfq_init_rcu #define cds_lfq_enqueue_rcu _cds_lfq_enqueue_rcu #define cds_lfq_dequeue_rcu _cds_lfq_dequeue_rcu @@ -80,15 +80,14 @@ extern void cds_lfq_enqueue_rcu(struct cds_lfq_queue_rcu *q, * Should be called under rcu read lock critical section. * * The entry returned by dequeue must be taken care of by doing a - * urcu_delayed_ref_put, which calls the release primitive after the - * reference count drops to zero _and_ a following grace period passes. + * sequence of urcu_ref_put which release handler should do a call_rcu. * * In other words, the entry lfq node returned by dequeue must not be * modified/re-used/freed until the reference count reaches zero and a grace * period has elapsed (after the refcount reached 0). */ -extern struct cds_lfq_node_rcu * -cds_lfq_dequeue_rcu(struct cds_lfq_queue_rcu *q); +extern +struct cds_lfq_node_rcu *cds_lfq_dequeue_rcu(struct cds_lfq_queue_rcu *q); #endif /* !_LGPL_SOURCE */