From c91b00b73226a431d5f7d8e262950fd3e83f40f1 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 13 Jul 2010 17:12:13 -0400 Subject: [PATCH] RCU lock-free queue comment updates Signed-off-by: Mathieu Desnoyers --- urcu/rculfqueue.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 *)) -- 2.34.1