projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update phase3 batch size
[userspace-rcu.git]
/
test_urcu.c
diff --git
a/test_urcu.c
b/test_urcu.c
index 96dac983336bfa87a57fc861a6b780c843378fba..3feda89e49a45f2edff66a7bbab5fbab6c7d27f7 100644
(file)
--- a/
test_urcu.c
+++ b/
test_urcu.c
@@
-258,14
+258,8
@@
void *thr_writer(void *_count)
for (;;) {
new = test_array_alloc();
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);
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);
if (old)
old->a = 0;
test_array_free(old);
This page took
0.022484 seconds
and
4
git commands to generate.