projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleanup: explicitly mark unused parameters (-Wunused-parameter)
[userspace-rcu.git]
/
doc
/
examples
/
hlist
/
cds_hlist_del_rcu.c
diff --git
a/doc/examples/hlist/cds_hlist_del_rcu.c
b/doc/examples/hlist/cds_hlist_del_rcu.c
index 1995b215cf24e505daa262d935561aa042f545b0..28b6c42e62c552e2df00bf007d00eff775794fd1 100644
(file)
--- a/
doc/examples/hlist/cds_hlist_del_rcu.c
+++ b/
doc/examples/hlist/cds_hlist_del_rcu.c
@@
-16,7
+16,7
@@
#include <stdio.h>
#include <stdio.h>
-#include <urcu
.h>
/* Userspace RCU flavor */
+#include <urcu
/urcu-memb.h>
/* Userspace RCU flavor */
#include <urcu/rcuhlist.h> /* RCU hlist */
#include <urcu/compiler.h> /* For CAA_ARRAY_SIZE */
#include <urcu/rcuhlist.h> /* RCU hlist */
#include <urcu/compiler.h> /* For CAA_ARRAY_SIZE */
@@
-37,7
+37,7
@@
void free_node_rcu(struct rcu_head *head)
free(node);
}
free(node);
}
-int main(
int argc, char **argv
)
+int main(
void
)
{
int values[] = { -5, 42, 36, 24, };
CDS_HLIST_HEAD(mylist); /* Defines an empty hlist head */
{
int values[] = { -5, 42, 36, 24, };
CDS_HLIST_HEAD(mylist); /* Defines an empty hlist head */
@@
-72,7
+72,7
@@
int main(int argc, char **argv)
* We can only reclaim memory after a grace
* period has passed after cds_hlist_del_rcu().
*/
* We can only reclaim memory after a grace
* period has passed after cds_hlist_del_rcu().
*/
- call_rcu(&node->rcu_head, free_node_rcu);
+
urcu_memb_
call_rcu(&node->rcu_head, free_node_rcu);
}
}
}
}
This page took
0.023498 seconds
and
4
git commands to generate.