X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=tests%2Ftest_qsbr_timing.c;h=969b802106da801750f39a5e02b1ab05c74c3348;hb=d2835e6f55477acf4833d6a9774f672288a99075;hp=bbe983e8da53efba99733c94deb59466157f72b6;hpb=3cd243cb6aadf35b82c35279d7179ead1e9cc938;p=urcu.git diff --git a/tests/test_qsbr_timing.c b/tests/test_qsbr_timing.c index bbe983e..969b802 100644 --- a/tests/test_qsbr_timing.c +++ b/tests/test_qsbr_timing.c @@ -153,8 +153,9 @@ void *thr_writer(void *arg) assert(old->a == 8); } new->a = 8; - old = _rcu_publish_content(&test_rcu_pointer, new); + old = rcu_xchg_pointer(&test_rcu_pointer, new); rcu_copy_mutex_unlock(); + synchronize_rcu(); /* can be done after unlock */ if (old) { old->a = 0;