Use xchg in publish content
[urcu.git] / test_urcu_timing.c
index 9903705c6c74fbcf08efed40eb72b5050f069dff..f97a5c1e3c9a15d3055c596a72a3d4d9e61d3fbc 100644 (file)
@@ -145,7 +145,7 @@ void *thr_writer(void *arg)
                        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.022443 seconds and 4 git commands to generate.