From 9be0828e85625ab403b83962622a7241665c49ea Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Sun, 29 Apr 2012 15:51:28 -0400 Subject: [PATCH] rculfhash: stress requirement in documentation Signed-off-by: Mathieu Desnoyers --- urcu/rculfhash.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/urcu/rculfhash.h b/urcu/rculfhash.h index 7d06a86..004c208 100644 --- a/urcu/rculfhash.h +++ b/urcu/rculfhash.h @@ -214,7 +214,8 @@ void cds_lfht_lookup(struct cds_lfht *ht, unsigned long hash, * @key: the current node key. * @iter: Node, if found (output). *iter->node set to NULL if not found. * - * Uses an iterator initialized by a lookup. + * Uses an iterator initialized by a lookup. Important: the iterator + * _needs_ to be initialized before calling cds_lfht_next_duplicate. * Sets *iter-node to the following node with same key. * Sets *iter->node to NULL if no following node exists with same key. * RCU read-side lock must be held across cds_lfht_lookup and -- 2.34.1