1 // SPDX-FileCopyrightText: 2010 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
3 // SPDX-License-Identifier: LGPL-2.1-or-later
6 * Userspace RCU library - Queue with Wait-Free Enqueue/Blocking Dequeue
9 /* Remove deprecation warnings from LGPL wrapper build. */
10 #define CDS_WFQ_DEPRECATED
12 /* Do not #define _LGPL_SOURCE to ensure we can emit the wrapper symbols */
13 #include "urcu/wfqueue.h"
14 #include "urcu/static/wfqueue.h"
17 * library wrappers to be used by non-LGPL compatible source code.
20 void cds_wfq_node_init(struct cds_wfq_node
*node
)
22 _cds_wfq_node_init(node
);
25 void cds_wfq_init(struct cds_wfq_queue
*q
)
30 void cds_wfq_destroy(struct cds_wfq_queue
*q
)
35 void cds_wfq_enqueue(struct cds_wfq_queue
*q
, struct cds_wfq_node
*node
)
37 _cds_wfq_enqueue(q
, node
);
40 struct cds_wfq_node
*__cds_wfq_dequeue_blocking(struct cds_wfq_queue
*q
)
42 return ___cds_wfq_dequeue_blocking(q
);
45 struct cds_wfq_node
*cds_wfq_dequeue_blocking(struct cds_wfq_queue
*q
)
47 return _cds_wfq_dequeue_blocking(q
);
This page took 0.030286 seconds and 4 git commands to generate.