From 364e4a1382a446dfdd4ead4f611e76ef078302ba Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 8 Mar 2010 18:17:13 -0500 Subject: [PATCH] Basic insertion/removal tests Signed-off-by: Mathieu Desnoyers --- tests/test_urcu_rbtree.c | 4 ++++ 1 file changed, 4 insertions(+) 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())) -- 2.34.1