rculfhash: stress requirement in documentation
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 29 Apr 2012 19:51:28 +0000 (15:51 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 29 Apr 2012 19:51:28 +0000 (15:51 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
urcu/rculfhash.h

index 7d06a869bc0f5b3b60d74feec7a4a93dff107684..004c20817b8585e1cecc21f37068b8725b8a5d43 100644 (file)
@@ -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
This page took 0.024948 seconds and 4 git commands to generate.