projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix perthreadlock test
[userspace-rcu.git]
/
test_perthreadlock.c
diff --git
a/test_perthreadlock.c
b/test_perthreadlock.c
index 7d722314bb91c3a7c6899efa3aac5dcd2ea3fd8c..89cce65be71fbdb8badbebedc936b6611e7dc697 100644
(file)
--- a/
test_perthreadlock.c
+++ b/
test_perthreadlock.c
@@
-185,7
+185,7
@@
void *thr_writer(void *data)
}
test_array.a = 0;
test_array.a = 8;
- for (tidx = nr_readers - 1; tidx >= 0; tidx--) {
+ for (tidx =
(long)
nr_readers - 1; tidx >= 0; tidx--) {
pthread_mutex_unlock(&per_thread_lock[tidx].lock);
}
nr_writes++;
This page took
0.023261 seconds
and
4
git commands to generate.