]> git.liburcu.org Git - urcu.git/commitdiff
rculfstack: header implementation should be defined as static inline
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 1 Jul 2011 20:17:55 +0000 (16:17 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 1 Jul 2011 20:17:55 +0000 (16:17 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
urcu/rculfstack.h
urcu/static/rculfstack.h

index 6a240fd42681761a0e458eb8827dd8fc83c7f6f2..75a580b58fe39e55af2b899ef38010fe66b3db0e 100644 (file)
@@ -40,8 +40,8 @@ struct cds_lfs_stack_rcu {
 #include <urcu/static/rculfstack.h>
 
 #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 */
index 99d3d4ccc92f8cd22011d099417986e274e08d73..3f48b7eabbc33c10a626400fb28dc6d4545c4776 100644 (file)
 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)
 {
This page took 0.030813 seconds and 4 git commands to generate.