X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=rculfqueue.c;h=c579e75a759e4e25d0f1780ecabd5c0b1bcd3e2a;hb=9380711ae3803da72aa1c7cf9ade5c3f93757006;hp=508e05c1a271e2eadda37da85f3b259d526ed991;hpb=16aa9ee87cf4364921c36025359be01390338d87;p=urcu.git diff --git a/rculfqueue.c b/rculfqueue.c index 508e05c..c579e75 100644 --- a/rculfqueue.c +++ b/rculfqueue.c @@ -20,11 +20,20 @@ * 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" +#define _LGPL_SOURCE + +#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/rculfqueue.h" -#include "urcu/rculfqueue-static.h" +#include "urcu/static/rculfqueue.h" /* * library wrappers to be used by non-LGPL compatible source code. @@ -40,13 +49,18 @@ void cds_lfq_init_rcu(struct cds_lfq_queue_rcu *q) _cds_lfq_init_rcu(q); } +int cds_lfq_destroy_rcu(struct cds_lfq_queue_rcu *q) +{ + return _cds_lfq_destroy_rcu(q); +} + void cds_lfq_enqueue_rcu(struct cds_lfq_queue_rcu *q, struct cds_lfq_node_rcu *node) { _cds_lfq_enqueue_rcu(q, node); } struct cds_lfq_node_rcu * -cds_lfq_dequeue_rcu(struct cds_lfq_queue_rcu *q, void (*release)(struct urcu_ref *)) +cds_lfq_dequeue_rcu(struct cds_lfq_queue_rcu *q) { - return _cds_lfq_dequeue_rcu(q, release); + return _cds_lfq_dequeue_rcu(q); }