Use xchg in publish content
[urcu.git] / test_urcu.c
index 39408a0bdd6d7141915b66222a9d64a7f655a7c3..b92a7d74de5c23fd55d5959e8e5f514d314ef090 100644 (file)
@@ -127,7 +127,7 @@ void *thr_writer(void *arg)
                if (old)
                        assert(old->a == 8);
                new->a = 8;
-               old = urcu_publish_content((void **)&test_rcu_pointer, new);
+               old = urcu_publish_content(&test_rcu_pointer, new);
                rcu_copy_mutex_unlock();
                /* can be done after unlock */
                if (old)
This page took 0.022014 seconds and 4 git commands to generate.