projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Apply autoupdate to configure.ac
[urcu.git]
/
tests
/
test_urcu_assign.c
diff --git
a/tests/test_urcu_assign.c
b/tests/test_urcu_assign.c
index 0d9ef853db8eb88b7b0fbe1650c6fc09201fec50..42d70c26ce8b15ef0ae074e83ca3c9632bc0dc00 100644
(file)
--- a/
tests/test_urcu_assign.c
+++ b/
tests/test_urcu_assign.c
@@
-239,11
+239,11
@@
void *thr_reader(void *_count)
debug_yield_read();
if (local_ptr)
assert(local_ptr->a == 8);
debug_yield_read();
if (local_ptr)
assert(local_ptr->a == 8);
- if (unlikely(rduration))
+ if (
caa_
unlikely(rduration))
loop_sleep(rduration);
rcu_read_unlock();
nr_reads++;
loop_sleep(rduration);
rcu_read_unlock();
nr_reads++;
- if (unlikely(!test_duration_read()))
+ if (
caa_
unlikely(!test_duration_read()))
break;
}
break;
}
@@
-277,7
+277,7
@@
void *thr_writer(void *_count)
new->a = 8;
old = test_rcu_pointer;
rcu_assign_pointer(test_rcu_pointer, new);
new->a = 8;
old = test_rcu_pointer;
rcu_assign_pointer(test_rcu_pointer, new);
- if (unlikely(wduration))
+ if (
caa_
unlikely(wduration))
loop_sleep(wduration);
synchronize_rcu();
if (old)
loop_sleep(wduration);
synchronize_rcu();
if (old)
@@
-285,9
+285,9
@@
void *thr_writer(void *_count)
test_array_free(old);
rcu_copy_mutex_unlock();
nr_writes++;
test_array_free(old);
rcu_copy_mutex_unlock();
nr_writes++;
- if (unlikely(!test_duration_write()))
+ if (
caa_
unlikely(!test_duration_write()))
break;
break;
- if (unlikely(wdelay))
+ if (
caa_
unlikely(wdelay))
loop_sleep(wdelay);
}
loop_sleep(wdelay);
}
This page took
0.023346 seconds
and
4
git commands to generate.