X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=test_urcu.c;h=3feda89e49a45f2edff66a7bbab5fbab6c7d27f7;hp=96dac983336bfa87a57fc861a6b780c843378fba;hb=4aa7451e29e7fc23cfbf7ba77c95041de9647872;hpb=6af882baf4a7cc82167b8e1abba5d6c851e0e6e8 diff --git a/test_urcu.c b/test_urcu.c index 96dac98..3feda89 100644 --- a/test_urcu.c +++ b/test_urcu.c @@ -258,14 +258,8 @@ void *thr_writer(void *_count) for (;;) { new = test_array_alloc(); - rcu_copy_mutex_lock(); - old = test_rcu_pointer; - if (old) - assert(old->a == 8); new->a = 8; old = rcu_publish_content(&test_rcu_pointer, new); - rcu_copy_mutex_unlock(); - /* can be done after unlock */ if (old) old->a = 0; test_array_free(old);