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