Basic insertion/removal tests
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 8 Mar 2010 23:17:13 +0000 (18:17 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 8 Mar 2010 23:17:13 +0000 (18:17 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/test_urcu_rbtree.c

index 043ec7121f12bb1edbe834d864d700a667a5af78..f7073962935570e5d1a6fe1e036b0c3241960204 100644 (file)
@@ -267,6 +267,10 @@ void *thr_writer(void *_count)
                if (unlikely(wduration))
                        loop_sleep(wduration);
 
+               rcu_rbtree_remove(&rbtree_root, node, tree_comp, rbtree_alloc,
+                                 rbtree_free);
+               defer_rcu((void (*)(void *))rbtree_free, node);
+
                rcu_copy_mutex_unlock();
                nr_writes++;
                if (unlikely(!test_duration_write()))
This page took 0.037413 seconds and 4 git commands to generate.