Make lf stack push return if the stack was empty
[urcu.git] / urcu / rculfstack.h
index ad83dbe771cd09adf33bf7446c102cecb24666c6..cf00daf26cc65cf09d300dafb91dd73467cf6f42 100644 (file)
@@ -68,10 +68,11 @@ struct cds_lfs_stack_rcu {
 
 extern void cds_lfs_node_init_rcu(struct cds_lfs_node_rcu *node);
 extern void cds_lfs_init_rcu(struct cds_lfs_stack_rcu *s);
-extern void cds_lfs_push_rcu(struct cds_lfs_stack_rcu *s, struct cds_lfs_node_rcu *node);
+extern int cds_lfs_push_rcu(struct cds_lfs_stack_rcu *s,
+                       struct cds_lfs_node_rcu *node);
 
 /*
- * Should be called under rcu read lock critical section.
+ * Acts as a RCU reader.
  *
  * The caller must wait for a grace period to pass before freeing the returned
  * node or modifying the cds_lfs_node_rcu structure.
This page took 0.022676 seconds and 4 git commands to generate.