CDS API: removal of rcu_read lock/unlock dep, removal of call_rcu argument from init
[urcu.git] / rculfqueue.c
index 85c7b880ebe0e8086f5544c995567e0e932420c5..c579e75a759e4e25d0f1780ecabd5c0b1bcd3e2a 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-/* Use the urcu symbols to select the appropriate rcu flavor at link time */
-#include "urcu.h"
+#define _LGPL_SOURCE
+
+#ifdef RCU_QSBR
+# include "urcu-qsbr.h"
+#elif defined(RCU_BP)
+# include "urcu-bp.h"
+#else
+# include "urcu.h"
+#endif
+
+#undef _LGPL_SOURCE
 /* Do not #define _LGPL_SOURCE to ensure we can emit the wrapper symbols */
 #include "urcu/rculfqueue.h"
-#include "urcu/rculfqueue-static.h"
+#include "urcu/static/rculfqueue.h"
 
 /*
  * library wrappers to be used by non-LGPL compatible source code.
  */
 
-void rcu_lfq_node_init(struct rcu_lfq_node *node)
+void cds_lfq_node_init_rcu(struct cds_lfq_node_rcu *node)
+{
+       _cds_lfq_node_init_rcu(node);
+}
+
+void cds_lfq_init_rcu(struct cds_lfq_queue_rcu *q)
 {
-       _rcu_lfq_node_init(node);
+       _cds_lfq_init_rcu(q);
 }
 
-void rcu_lfq_init(struct rcu_lfq_queue *q)
+int cds_lfq_destroy_rcu(struct cds_lfq_queue_rcu *q)
 {
-       _rcu_lfq_init(q);
+       return _cds_lfq_destroy_rcu(q);
 }
 
-void rcu_lfq_enqueue(struct rcu_lfq_queue *q, struct rcu_lfq_node *node)
+void cds_lfq_enqueue_rcu(struct cds_lfq_queue_rcu *q, struct cds_lfq_node_rcu *node)
 {
-       _rcu_lfq_enqueue(q, node);
+       _cds_lfq_enqueue_rcu(q, node);
 }
 
-struct rcu_lfq_node *
-rcu_lfq_dequeue(struct rcu_lfq_queue *q, void (*release)(struct urcu_ref *))
+struct cds_lfq_node_rcu *
+cds_lfq_dequeue_rcu(struct cds_lfq_queue_rcu *q)
 {
-       return _rcu_lfq_dequeue(q, release);
+       return _cds_lfq_dequeue_rcu(q);
 }
This page took 0.022712 seconds and 4 git commands to generate.