projects
/
userspace-rcu.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)
[userspace-rcu.git]
/
tests
/
benchmark
/
test_urcu_lfs_rcu.c
diff --git
a/tests/benchmark/test_urcu_lfs_rcu.c
b/tests/benchmark/test_urcu_lfs_rcu.c
index d700b87d2d88bec76e3d5ce910bbc2dc3259cfb7..d929ea30e1d3513b4187124d4279af43867100ba 100644
(file)
--- a/
tests/benchmark/test_urcu_lfs_rcu.c
+++ b/
tests/benchmark/test_urcu_lfs_rcu.c
@@
-248,18
+248,18
@@
void *thr_dequeuer(void *_count)
}
static
}
static
-void test_end(
struct cds_lfs_stack_rcu *s, unsigned long long *nr_dequeues
)
+void test_end(
unsigned long long *nr_dequeues_l
)
{
struct cds_lfs_node_rcu *snode;
do {
{
struct cds_lfs_node_rcu *snode;
do {
- snode = cds_lfs_pop_rcu(s);
+ snode = cds_lfs_pop_rcu(
&
s);
if (snode) {
struct test *node;
node = caa_container_of(snode, struct test, list);
free(node);
if (snode) {
struct test *node;
node = caa_container_of(snode, struct test, list);
free(node);
- (*nr_dequeues)++;
+ (*nr_dequeues
_l
)++;
}
} while (snode);
}
}
} while (snode);
}
@@
-409,7
+409,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(&
s, &
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.023604 seconds
and
4
git commands to generate.