rcuja test: destroy should be done online
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 30 May 2013 20:05:51 +0000 (16:05 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 30 May 2013 20:05:51 +0000 (16:05 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/test_urcu_ja.c

index 50f94cc771b5a0f089af98ca31b733660dcc9bc8..bad6784a446db3ecb1857de5c459dc93ffd66d13 100644 (file)
@@ -836,13 +836,13 @@ int do_mt_test(void)
                tot_add_exist += count_writer[i].add_exist;
                tot_remove += count_writer[i].remove;
        }
+       rcu_thread_online_qsbr();
 
        ret = cds_ja_destroy(test_ja, free_node_cb);
        if (ret) {
                fprintf(stderr, "Error destroying judy array\n");
                goto end;
        }
-       rcu_thread_online_qsbr();
 
        free(tid_reader);
        free(tid_writer);
This page took 0.025513 seconds and 4 git commands to generate.