projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: tap array subscript has type char warning
[userspace-rcu.git]
/
doc
/
examples
/
rculfqueue
/
cds_lfq_enqueue.c
diff --git
a/doc/examples/rculfqueue/cds_lfq_enqueue.c
b/doc/examples/rculfqueue/cds_lfq_enqueue.c
index a8c6f8653814d4d9e7ab7b785599586ffe9d7373..1e78f1694295280fb5c7891e9c52f92e8bd40669 100644
(file)
--- a/
doc/examples/rculfqueue/cds_lfq_enqueue.c
+++ b/
doc/examples/rculfqueue/cds_lfq_enqueue.c
@@
-17,7
+17,7
@@
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
-#include <urcu
.h>
/* RCU flavor */
+#include <urcu
/urcu-memb.h>
/* RCU flavor */
#include <urcu/rculfqueue.h> /* RCU Lock-free queue */
#include <urcu/compiler.h> /* For CAA_ARRAY_SIZE */
#include <urcu/rculfqueue.h> /* RCU Lock-free queue */
#include <urcu/compiler.h> /* For CAA_ARRAY_SIZE */
@@
-40,9
+40,9
@@
int main(int argc, char **argv)
* Each thread need using RCU read-side need to be explicitly
* registered.
*/
* Each thread need using RCU read-side need to be explicitly
* registered.
*/
-
rcu
_register_thread();
+
urcu_memb
_register_thread();
- cds_lfq_init_rcu(&myqueue, call_rcu);
+ cds_lfq_init_rcu(&myqueue,
urcu_memb_
call_rcu);
/*
* Enqueue nodes.
/*
* Enqueue nodes.
@@
-62,12
+62,12
@@
int main(int argc, char **argv)
* Both enqueue and dequeue need to be called within RCU
* read-side critical section.
*/
* Both enqueue and dequeue need to be called within RCU
* read-side critical section.
*/
-
rcu
_read_lock();
+
urcu_memb
_read_lock();
cds_lfq_enqueue_rcu(&myqueue, &node->node);
cds_lfq_enqueue_rcu(&myqueue, &node->node);
-
rcu
_read_unlock();
+
urcu_memb
_read_unlock();
}
end:
}
end:
-
rcu
_unregister_thread();
+
urcu_memb
_unregister_thread();
return ret;
}
return ret;
}
This page took
0.023515 seconds
and
4
git commands to generate.