projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: shadowed local variable (-Wshadow)
[urcu.git]
/
tests
/
benchmark
/
test_urcu_wfq.c
diff --git
a/tests/benchmark/test_urcu_wfq.c
b/tests/benchmark/test_urcu_wfq.c
index 07a684825f982bad6e0b5d77993eaf195f33d3ec..bd733fe2bf74f1c924d15f0d7d87b4111b4db7ea 100644
(file)
--- a/
tests/benchmark/test_urcu_wfq.c
+++ b/
tests/benchmark/test_urcu_wfq.c
@@
-221,15
+221,15
@@
void *thr_dequeuer(void *_count)
}
static
}
static
-void test_end(
struct cds_wfq_queue *q, unsigned long long *nr_dequeues
)
+void test_end(
unsigned long long *nr_dequeues_l
)
{
struct cds_wfq_node *node;
do {
{
struct cds_wfq_node *node;
do {
- node = cds_wfq_dequeue_blocking(q);
+ node = cds_wfq_dequeue_blocking(
&
q);
if (node) {
free(node);
if (node) {
free(node);
- (*nr_dequeues)++;
+ (*nr_dequeues
_l
)++;
}
} while (node);
}
}
} while (node);
}
@@
-375,7
+375,7
@@
int main(int argc, char **argv)
tot_successful_dequeues += count_dequeuer[2 * i_thr + 1];
}
tot_successful_dequeues += count_dequeuer[2 * i_thr + 1];
}
- test_end(&
q, &
end_dequeues);
+ test_end(&end_dequeues);
printf_verbose("total number of enqueues : %llu, dequeues %llu\n",
tot_enqueues, tot_dequeues);
printf_verbose("total number of enqueues : %llu, dequeues %llu\n",
tot_enqueues, tot_dequeues);
This page took
0.023105 seconds
and
4
git commands to generate.