tests: remove rcu_publish_content dependency
[urcu.git] / tests / test_urcu.c
index 3b838c147e2b8ca3ddf866c6218937ac5c8ba2bb..42892165fce3238564580f2407f4f1922f179f5a 100644 (file)
@@ -256,7 +256,8 @@ void *thr_writer(void *_count)
        for (;;) {
                new = test_array_alloc();
                new->a = 8;
-               old = rcu_publish_content(&test_rcu_pointer, new);
+               old = rcu_xchg_pointer(&test_rcu_pointer, new);
+               synchronize_rcu();
                if (old)
                        old->a = 0;
                test_array_free(old);
This page took 0.023955 seconds and 4 git commands to generate.