projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: uatomic arm32: add missing release barrier before uatomic_xchg
[userspace-rcu.git]
/
tests
/
benchmark
/
test_mutex.c
diff --git
a/tests/benchmark/test_mutex.c
b/tests/benchmark/test_mutex.c
index 574d0e8cfce8efb3363c32c8acdae103113b27df..81efcaeb33d77949b3bf7abec625082d18a43819 100644
(file)
--- a/
tests/benchmark/test_mutex.c
+++ b/
tests/benchmark/test_mutex.c
@@
-179,8
+179,11
@@
void *thr_reader(void *data)
}
for (;;) {
+ int v;
+
pthread_mutex_lock(&lock);
- assert(test_array.a == 8);
+ v = test_array.a;
+ assert(v == 8);
if (caa_unlikely(rduration))
loop_sleep(rduration);
pthread_mutex_unlock(&lock);
This page took
0.024714 seconds
and
4
git commands to generate.