From: Mathieu Desnoyers Date: Sun, 29 Apr 2012 19:51:28 +0000 (-0400) Subject: rculfhash: stress requirement in documentation X-Git-Tag: v0.7.0~26 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=9be0828e85625ab403b83962622a7241665c49ea;p=urcu.git rculfhash: stress requirement in documentation Signed-off-by: Mathieu Desnoyers --- 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