X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=rculfstack.c;h=f58628ce4ea06f55185fb75682cbc9f6b974ef36;hb=e1a3b81e201ccfd019dae3778bd6ba0bd1e545e4;hp=ca50232dcfcd01815b92a32a861951e0b46b7644;hpb=d9b52143813e104eeee1e3d90061042230b7b5bf;p=urcu.git diff --git a/rculfstack.c b/rculfstack.c index ca50232..f58628c 100644 --- a/rculfstack.c +++ b/rculfstack.c @@ -22,12 +22,19 @@ /* Use the urcu symbols to select the appropriate rcu flavor at link time */ #define _LGPL_SOURCE -#include "urcu.h" + +#ifdef RCU_QSBR +# include "urcu-qsbr.h" +#elif defined(RCU_BP) +# include "urcu-bp.h" +#else +# include "urcu.h" +#endif #undef _LGPL_SOURCE /* Do not #define _LGPL_SOURCE to ensure we can emit the wrapper symbols */ #include "urcu/rculfstack.h" -#include "urcu/rculfstack-static.h" +#include "urcu/static/rculfstack.h" /* * library wrappers to be used by non-LGPL compatible source code. @@ -44,9 +51,10 @@ void cds_lfs_init_rcu(struct cds_lfs_stack_rcu *s) _cds_lfs_init_rcu(s); } -void cds_lfs_push_rcu(struct cds_lfs_stack_rcu *s, struct cds_lfs_node_rcu *node) +int cds_lfs_push_rcu(struct cds_lfs_stack_rcu *s, + struct cds_lfs_node_rcu *node) { - _cds_lfs_push_rcu(s, node); + return _cds_lfs_push_rcu(s, node); } struct cds_lfs_node_rcu *cds_lfs_pop_rcu(struct cds_lfs_stack_rcu *s)