projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: urcu-bp: re-initialize list head on library exit
[userspace-rcu.git]
/
rculfstack.c
diff --git
a/rculfstack.c
b/rculfstack.c
index 01d549bb9b1b69cbfd9935c1a2fe898a4717c688..df5c54703820461766b6cc18bf7f961812cad8b7 100644
(file)
--- a/
rculfstack.c
+++ b/
rculfstack.c
@@
-20,33
+20,37
@@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
* 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"
+/* Remove deprecation warnings from LGPL wrapper build. */
+#define CDS_LFS_RCU_DEPRECATED
+
/* Do not #define _LGPL_SOURCE to ensure we can emit the wrapper symbols */
/* Do not #define _LGPL_SOURCE to ensure we can emit the wrapper symbols */
+#undef _LGPL_SOURCE
#include "urcu/rculfstack.h"
#include "urcu/rculfstack.h"
-#include "urcu/rculfstack-static.h"
+#define _LGPL_SOURCE
+#include "urcu/static/rculfstack.h"
/*
* library wrappers to be used by non-LGPL compatible source code.
*/
/*
* library wrappers to be used by non-LGPL compatible source code.
*/
-void
rcu_lfs_node_init(struct rcu_lfs_node
*node)
+void
cds_lfs_node_init_rcu(struct cds_lfs_node_rcu
*node)
{
{
- _
rcu_lfs_node_init
(node);
+ _
cds_lfs_node_init_rcu
(node);
}
}
-void
rcu_lfs_init(struct rcu_lfs_stack
*s)
+void
cds_lfs_init_rcu(struct cds_lfs_stack_rcu
*s)
{
{
- _
rcu_lfs_init
(s);
+ _
cds_lfs_init_rcu
(s);
}
}
-void rcu_lfs_push(struct rcu_lfs_stack *s, struct rcu_lfs_node *node)
+int cds_lfs_push_rcu(struct cds_lfs_stack_rcu *s,
+ struct cds_lfs_node_rcu *node)
{
{
-
_rcu_lfs_push
(s, node);
+
return _cds_lfs_push_rcu
(s, node);
}
}
-struct
rcu_lfs_node *rcu_lfs_pop(struct rcu_lfs_stack
*s)
+struct
cds_lfs_node_rcu *cds_lfs_pop_rcu(struct cds_lfs_stack_rcu
*s)
{
{
- return _
rcu_lfs_pop
(s);
+ return _
cds_lfs_pop_rcu
(s);
}
}
This page took
0.029881 seconds
and
4
git commands to generate.