test cases: add multiple register/unregister tests
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Mon, 1 Mar 2010 21:41:51 +0000 (16:41 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Mon, 1 Mar 2010 21:41:51 +0000 (16:41 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/test_qsbr.c
tests/test_urcu.c

index f3550a0be5902911549892fbf87974eb7c139480..fd6e1bc7294f383b576df7053197ce0556f02b43 100644 (file)
@@ -251,6 +251,10 @@ void *thr_reader(void *_count)
 
        rcu_unregister_thread();
 
+       /* test extra thread registration */
+       rcu_register_thread();
+       rcu_unregister_thread();
+
        *count = nr_reads;
        printf_verbose("thread_end %s, thread id : %lx, tid %lu\n",
                        "reader", pthread_self(), (unsigned long)gettid());
index d7993cbe57ca6356816c6d8bd3f2f07f9a340631..1e64fc36d0cef58a2732d0316552004b9eb9ba76 100644 (file)
@@ -249,6 +249,10 @@ void *thr_reader(void *_count)
 
        rcu_unregister_thread();
 
+       /* test extra thread registration */
+       rcu_register_thread();
+       rcu_unregister_thread();
+
        *count = nr_reads;
        printf_verbose("thread_end %s, thread id : %lx, tid %lu\n",
                        "reader", pthread_self(), (unsigned long)gettid());
This page took 0.028402 seconds and 4 git commands to generate.