Add pkg-config files for all urcu libs
[urcu.git] / rculfqueue.c
CommitLineData
3d02c34d
MD
1/*
2 * rculfqueue.c
3 *
4 * Userspace RCU library - Lock-Free RCU Queue
5 *
6 * Copyright 2010 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23/* Use the urcu symbols to select the appropriate rcu flavor at link time */
24#include "urcu.h"
25/* Do not #define _LGPL_SOURCE to ensure we can emit the wrapper symbols */
26#include "urcu/rculfqueue.h"
27#include "urcu/rculfqueue-static.h"
28
29/*
30 * library wrappers to be used by non-LGPL compatible source code.
31 */
32
16aa9ee8 33void cds_lfq_node_init_rcu(struct cds_lfq_node_rcu *node)
3d02c34d 34{
16aa9ee8 35 _cds_lfq_node_init_rcu(node);
3d02c34d
MD
36}
37
16aa9ee8 38void cds_lfq_init_rcu(struct cds_lfq_queue_rcu *q)
3d02c34d 39{
16aa9ee8 40 _cds_lfq_init_rcu(q);
3d02c34d
MD
41}
42
16aa9ee8 43void cds_lfq_enqueue_rcu(struct cds_lfq_queue_rcu *q, struct cds_lfq_node_rcu *node)
3d02c34d 44{
16aa9ee8 45 _cds_lfq_enqueue_rcu(q, node);
3d02c34d
MD
46}
47
16aa9ee8
DG
48struct cds_lfq_node_rcu *
49cds_lfq_dequeue_rcu(struct cds_lfq_queue_rcu *q, void (*release)(struct urcu_ref *))
3d02c34d 50{
16aa9ee8 51 return _cds_lfq_dequeue_rcu(q, release);
3d02c34d 52}
This page took 0.023768 seconds and 4 git commands to generate.