From: Mathieu Desnoyers Date: Mon, 8 Mar 2010 23:17:13 +0000 (-0500) Subject: Basic insertion/removal tests X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=364e4a1382a446dfdd4ead4f611e76ef078302ba;p=userspace-rcu.git Basic insertion/removal tests Signed-off-by: Mathieu Desnoyers --- diff --git a/tests/test_urcu_rbtree.c b/tests/test_urcu_rbtree.c index 043ec71..f707396 100644 --- a/tests/test_urcu_rbtree.c +++ b/tests/test_urcu_rbtree.c @@ -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()))