From: Mathieu Desnoyers Date: Tue, 13 Jul 2010 21:12:13 +0000 (-0400) Subject: RCU lock-free queue comment updates X-Git-Tag: v0.4.7~17 X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=commitdiff_plain;h=c91b00b73226a431d5f7d8e262950fd3e83f40f1 RCU lock-free queue comment updates Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu/rculfqueue.h b/urcu/rculfqueue.h index 808a16b..b712998 100644 --- a/urcu/rculfqueue.h +++ b/urcu/rculfqueue.h @@ -111,8 +111,9 @@ void rcu_lfq_enqueue(struct rcu_lfq_queue *q, struct rcu_lfq_node *node) * which calls the release primitive when the reference count drops to zero. A * grace period must be waited before performing the actual memory reclamation * in the release primitive. - * The entry lfq node returned by dequeue must not be re-used before the - * reference count reaches zero. + * 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). */ struct rcu_lfq_node * rcu_lfq_dequeue(struct rcu_lfq_queue *q, void (*release)(struct urcu_ref *))