X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Frculfqueue-static.h;h=410a4cf8d820714dbc88673db078ef89b1545c45;hp=be6a4bc2b167958620afe336d56e73242405cf83;hb=a34df756f236349fc574f05ed3cf41c1c77771c6;hpb=b7ef17d170fe415c082fb22af19f49188554f05c diff --git a/urcu/rculfqueue-static.h b/urcu/rculfqueue-static.h index be6a4bc..410a4cf 100644 --- a/urcu/rculfqueue-static.h +++ b/urcu/rculfqueue-static.h @@ -109,14 +109,13 @@ 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_ref_put after a 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. */ -struct cds_lfq_node_rcu * -_cds_lfq_dequeue_rcu(struct cds_lfq_queue_rcu *q) +struct cds_lfq_node_rcu *_cds_lfq_dequeue_rcu(struct cds_lfq_queue_rcu *q) { for (;;) { struct cds_lfq_node_rcu *head, *next;