projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into urcu/ht-shrink
[userspace-rcu.git]
/
tests
/
test_urcu_qsbr.c
diff --git
a/tests/test_urcu_qsbr.c
b/tests/test_urcu_qsbr.c
index 1c5a696c03491db909c4c2a23f42df9a0fe4b4b0..b986fd825fabc4d8663ab395f95d875631453133 100644
(file)
--- a/
tests/test_urcu_qsbr.c
+++ b/
tests/test_urcu_qsbr.c
@@
-238,14
+238,14
@@
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++;
/* QS each 1024 reads */
loop_sleep(rduration);
rcu_read_unlock();
nr_reads++;
/* QS each 1024 reads */
- if (unlikely((nr_reads & ((1 << 10) - 1)) == 0))
+ if (
caa_
unlikely((nr_reads & ((1 << 10) - 1)) == 0))
rcu_quiescent_state();
rcu_quiescent_state();
- if (unlikely(!test_duration_read()))
+ if (
caa_
unlikely(!test_duration_read()))
break;
}
break;
}
@@
-282,7
+282,7
@@
void *thr_writer(void *_count)
new = test_array_alloc();
new->a = 8;
old = rcu_xchg_pointer(&test_rcu_pointer, new);
new = test_array_alloc();
new->a = 8;
old = rcu_xchg_pointer(&test_rcu_pointer, new);
- if (unlikely(wduration))
+ if (
caa_
unlikely(wduration))
loop_sleep(wduration);
synchronize_rcu();
/* can be done after unlock */
loop_sleep(wduration);
synchronize_rcu();
/* can be done after unlock */
@@
-291,9
+291,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.024881 seconds
and
4
git commands to generate.