projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: fix incorrect counter
[userspace-rcu.git]
/
tests
/
test_urcu_lfs.c
diff --git
a/tests/test_urcu_lfs.c
b/tests/test_urcu_lfs.c
index 67ccaa25f3f9911e77acbc22d62f43ba6d84ed1c..9636f5bb0da7a935f3e52092d0b3cbef1278cea8 100644
(file)
--- a/
tests/test_urcu_lfs.c
+++ b/
tests/test_urcu_lfs.c
@@
-274,6
+274,7
@@
void do_test_pop_all(enum test_sync sync)
static void *thr_dequeuer(void *_count)
{
unsigned long long *count = _count;
static void *thr_dequeuer(void *_count)
{
unsigned long long *count = _count;
+ unsigned int counter = 0;
printf_verbose("thread_begin %s, thread id : %lx, tid %lu\n",
"dequeuer", (unsigned long) pthread_self(),
printf_verbose("thread_begin %s, thread id : %lx, tid %lu\n",
"dequeuer", (unsigned long) pthread_self(),
@@
-291,8
+292,6
@@
static void *thr_dequeuer(void *_count)
assert(test_pop || test_pop_all);
for (;;) {
assert(test_pop || test_pop_all);
for (;;) {
- unsigned int counter = 0;
-
if (test_pop && test_pop_all) {
/* both pop and pop all */
if (counter & 1)
if (test_pop && test_pop_all) {
/* both pop and pop all */
if (counter & 1)
This page took
0.022511 seconds
and
4
git commands to generate.