X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=tests%2Ftest_urcu.c;h=42892165fce3238564580f2407f4f1922f179f5a;hb=d2835e6f55477acf4833d6a9774f672288a99075;hp=3b838c147e2b8ca3ddf866c6218937ac5c8ba2bb;hpb=3cd243cb6aadf35b82c35279d7179ead1e9cc938;p=urcu.git diff --git a/tests/test_urcu.c b/tests/test_urcu.c index 3b838c1..4289216 100644 --- a/tests/test_urcu.c +++ b/tests/test_urcu.c @@ -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);