From: Mathieu Desnoyers Date: Fri, 1 Jul 2011 20:17:55 +0000 (-0400) Subject: rculfstack: header implementation should be defined as static inline X-Git-Tag: v0.6.4~2 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=c5f52d0c6b1890f0c66f172665ae6793634f5287;p=urcu.git rculfstack: header implementation should be defined as static inline Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu/rculfstack.h b/urcu/rculfstack.h index 6a240fd..75a580b 100644 --- a/urcu/rculfstack.h +++ b/urcu/rculfstack.h @@ -40,8 +40,8 @@ struct cds_lfs_stack_rcu { #include #define cds_lfs_node_init_rcu _cds_lfs_node_init_rcu -#define cds_lfs_init_rcu _cds_lfs_init_rcu -#define cds_lfs_push_rcu _cds_lfs_push_rcu +#define cds_lfs_init_rcu _cds_lfs_init_rcu +#define cds_lfs_push_rcu _cds_lfs_push_rcu #define cds_lfs_pop_rcu _cds_lfs_pop_rcu #else /* !_LGPL_SOURCE */ diff --git a/urcu/static/rculfstack.h b/urcu/static/rculfstack.h index 99d3d4c..3f48b7e 100644 --- a/urcu/static/rculfstack.h +++ b/urcu/static/rculfstack.h @@ -33,15 +33,18 @@ extern "C" { #endif +static inline void _cds_lfs_node_init_rcu(struct cds_lfs_node_rcu *node) { } +static inline void _cds_lfs_init_rcu(struct cds_lfs_stack_rcu *s) { s->head = NULL; } +static inline void _cds_lfs_push_rcu(struct cds_lfs_stack_rcu *s, struct cds_lfs_node_rcu *node) { struct cds_lfs_node_rcu *head = NULL; @@ -67,6 +70,7 @@ void _cds_lfs_push_rcu(struct cds_lfs_stack_rcu *s, struct cds_lfs_node_rcu *nod * node or modifying the cds_lfs_node_rcu structure. * Returns NULL if stack is empty. */ +static inline struct cds_lfs_node_rcu * _cds_lfs_pop_rcu(struct cds_lfs_stack_rcu *s) {