projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rculfhash: Ensure future-proof memory barrier semantic consistency
[userspace-rcu.git]
/
rculfqueue.c
diff --git
a/rculfqueue.c
b/rculfqueue.c
index 0daee5dcf6d148b149b7773f752c8b6b01b20c08..38eddcf3a4283c2b86d2d66ee5604bf3a57b2213 100644
(file)
--- a/
rculfqueue.c
+++ b/
rculfqueue.c
@@
-20,13
+20,10
@@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#define _LGPL_SOURCE
-/* Use the urcu symbols to select the appropriate rcu flavor at link time */
-#include "urcu.h"
-
-#undef _LGPL_SOURCE
/* Do not #define _LGPL_SOURCE to ensure we can emit the wrapper symbols */
/* Do not #define _LGPL_SOURCE to ensure we can emit the wrapper symbols */
+#undef _LGPL_SOURCE
#include "urcu/rculfqueue.h"
#include "urcu/rculfqueue.h"
+#define _LGPL_SOURCE
#include "urcu/static/rculfqueue.h"
/*
#include "urcu/static/rculfqueue.h"
/*
@@
-39,9
+36,15
@@
void cds_lfq_node_init_rcu(struct cds_lfq_node_rcu *node)
}
void cds_lfq_init_rcu(struct cds_lfq_queue_rcu *q,
}
void cds_lfq_init_rcu(struct cds_lfq_queue_rcu *q,
- void (*release)(struct urcu_ref *ref))
+ void queue_call_rcu(struct rcu_head *head,
+ void (*func)(struct rcu_head *head)))
+{
+ _cds_lfq_init_rcu(q, queue_call_rcu);
+}
+
+int cds_lfq_destroy_rcu(struct cds_lfq_queue_rcu *q)
{
{
-
_cds_lfq_init_rcu(q, release
);
+
return _cds_lfq_destroy_rcu(q
);
}
void cds_lfq_enqueue_rcu(struct cds_lfq_queue_rcu *q, struct cds_lfq_node_rcu *node)
}
void cds_lfq_enqueue_rcu(struct cds_lfq_queue_rcu *q, struct cds_lfq_node_rcu *node)
This page took
0.026781 seconds
and
4
git commands to generate.