1 // SPDX-FileCopyrightText: 2010 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
3 // SPDX-License-Identifier: LGPL-2.1-or-later
6 * Userspace RCU library - Lock-Free RCU Queue
9 /* Do not #define _LGPL_SOURCE to ensure we can emit the wrapper symbols */
11 #include "urcu/rculfqueue.h"
13 #include "urcu/static/rculfqueue.h"
16 * library wrappers to be used by non-LGPL compatible source code.
19 void cds_lfq_node_init_rcu(struct cds_lfq_node_rcu
*node
)
21 _cds_lfq_node_init_rcu(node
);
24 void cds_lfq_init_rcu(struct cds_lfq_queue_rcu
*q
,
25 void queue_call_rcu(struct rcu_head
*head
,
26 void (*func
)(struct rcu_head
*head
)))
28 _cds_lfq_init_rcu(q
, queue_call_rcu
);
31 int cds_lfq_destroy_rcu(struct cds_lfq_queue_rcu
*q
)
33 return _cds_lfq_destroy_rcu(q
);
36 void cds_lfq_enqueue_rcu(struct cds_lfq_queue_rcu
*q
, struct cds_lfq_node_rcu
*node
)
38 _cds_lfq_enqueue_rcu(q
, node
);
41 struct cds_lfq_node_rcu
*
42 cds_lfq_dequeue_rcu(struct cds_lfq_queue_rcu
*q
)
44 return _cds_lfq_dequeue_rcu(q
);
This page took 0.032346 seconds and 4 git commands to generate.