uatomic/x86: Remove redundant memory barriers
[urcu.git] / src / rculfstack.c
CommitLineData
acdb82a2
MJ
1// SPDX-FileCopyrightText: 2010 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4
b6a37eac 5/*
b6a37eac 6 * Userspace RCU library - Lock-Free RCU Stack
b6a37eac
MD
7 */
8
d89ec762
MD
9/* Remove deprecation warnings from LGPL wrapper build. */
10#define CDS_LFS_RCU_DEPRECATED
11
b6a37eac 12/* Do not #define _LGPL_SOURCE to ensure we can emit the wrapper symbols */
ae4510b5 13#undef _LGPL_SOURCE
b6a37eac 14#include "urcu/rculfstack.h"
ae4510b5 15#define _LGPL_SOURCE
af7c2dbe 16#include "urcu/static/rculfstack.h"
b6a37eac
MD
17
18/*
19 * library wrappers to be used by non-LGPL compatible source code.
20 */
21
22
16aa9ee8 23void cds_lfs_node_init_rcu(struct cds_lfs_node_rcu *node)
b6a37eac 24{
16aa9ee8 25 _cds_lfs_node_init_rcu(node);
b6a37eac
MD
26}
27
16aa9ee8 28void cds_lfs_init_rcu(struct cds_lfs_stack_rcu *s)
b6a37eac 29{
16aa9ee8 30 _cds_lfs_init_rcu(s);
b6a37eac
MD
31}
32
e1a3b81e
MD
33int cds_lfs_push_rcu(struct cds_lfs_stack_rcu *s,
34 struct cds_lfs_node_rcu *node)
b6a37eac 35{
e1a3b81e 36 return _cds_lfs_push_rcu(s, node);
b6a37eac
MD
37}
38
16aa9ee8 39struct cds_lfs_node_rcu *cds_lfs_pop_rcu(struct cds_lfs_stack_rcu *s)
b6a37eac 40{
16aa9ee8 41 return _cds_lfs_pop_rcu(s);
b6a37eac 42}
This page took 0.044029 seconds and 4 git commands to generate.