doc: update examples to API changes
[urcu.git] / doc / examples / list / cds_list_replace_rcu.c
index 4ccc1df0038e583be8ea57a2b30e420a78d5654f..39202ea9f41da34a652664988c2d8dc3bf99fab2 100644 (file)
@@ -16,7 +16,7 @@
 
 #include <stdio.h>
 
-#include <urcu.h>              /* Userspace RCU flavor */
+#include <urcu/urcu-memb.h>    /* Userspace RCU flavor */
 #include <urcu/rculist.h>      /* RCU list */
 #include <urcu/compiler.h>     /* For CAA_ARRAY_SIZE */
 
@@ -77,7 +77,7 @@ int main(int argc, char **argv)
                /* Replacement node value is negated original value. */
                new_node->value = -node->value;
                cds_list_replace_rcu(&node->node, &new_node->node);
-               call_rcu(&node->rcu_head, free_node_rcu);
+               urcu_memb_call_rcu(&node->rcu_head, free_node_rcu);
        }
 
        /*
This page took 0.022221 seconds and 4 git commands to generate.