projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
urcu signal tests: use library rather than recompile source
[userspace-rcu.git]
/
wfqueue.c
diff --git
a/wfqueue.c
b/wfqueue.c
index d22aa7cfe9a0a754fc5e7f05d9d32bc9ff00492e..14272cb2eefba483bcb7a949209965684838597a 100644
(file)
--- a/
wfqueue.c
+++ b/
wfqueue.c
@@
-20,30
+20,38
@@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+/* Remove deprecation warnings from LGPL wrapper build. */
+#define CDS_WFQ_DEPRECATED
+
/* Do not #define _LGPL_SOURCE to ensure we can emit the wrapper symbols */
#include "urcu/wfqueue.h"
/* Do not #define _LGPL_SOURCE to ensure we can emit the wrapper symbols */
#include "urcu/wfqueue.h"
-#include "urcu/
wfqueue-static
.h"
+#include "urcu/
static/wfqueue
.h"
/*
* library wrappers to be used by non-LGPL compatible source code.
*/
/*
* library wrappers to be used by non-LGPL compatible source code.
*/
-void wfq_node_init(struct wfq_node *node)
+void cds_wfq_node_init(struct cds_wfq_node *node)
+{
+ _cds_wfq_node_init(node);
+}
+
+void cds_wfq_init(struct cds_wfq_queue *q)
{
{
- _
wfq_node_init(node
);
+ _
cds_wfq_init(q
);
}
}
-void
wfq_init(struct wfq_queue *q
)
+void
cds_wfq_enqueue(struct cds_wfq_queue *q, struct cds_wfq_node *node
)
{
{
- _
wfq_init(q
);
+ _
cds_wfq_enqueue(q, node
);
}
}
-
void wfq_enqueue(struct wfq_queue *q, struct wfq_node *node
)
+
struct cds_wfq_node *__cds_wfq_dequeue_blocking(struct cds_wfq_queue *q
)
{
{
-
_wfq_enqueue(q, node
);
+
return ___cds_wfq_dequeue_blocking(q
);
}
}
-struct
wfq_node *wfq_dequeue_blocking(struct
wfq_queue *q)
+struct
cds_wfq_node *cds_wfq_dequeue_blocking(struct cds_
wfq_queue *q)
{
{
- return _wfq_dequeue_blocking(q);
+ return _
cds_
wfq_dequeue_blocking(q);
}
}
This page took
0.026811 seconds
and
4
git commands to generate.