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_wfs.c
diff --git
a/tests/benchmark/test_urcu_wfs.c
b/tests/benchmark/test_urcu_wfs.c
index 2c82c019577a5454fef2047c1c570b5813d26465..beade9a9b370b7444b76de8435c28a96cc1741f4 100644
(file)
--- a/
tests/benchmark/test_urcu_wfs.c
+++ b/
tests/benchmark/test_urcu_wfs.c
@@
-296,19
+296,19
@@
static void *thr_dequeuer(void *_count)
return ((void*)2);
}
return ((void*)2);
}
-static void test_end(
struct cds_wfs_stack *s, unsigned long long *nr_dequeues
,
- unsigned long long *nr_pop_last)
+static void test_end(
unsigned long long *nr_dequeues_l
,
+ unsigned long long *nr_pop_last
_l
)
{
struct cds_wfs_node *node;
int state;
do {
{
struct cds_wfs_node *node;
int state;
do {
- node = cds_wfs_pop_with_state_blocking(s, &state);
+ node = cds_wfs_pop_with_state_blocking(
&
s, &state);
if (node) {
if (state & CDS_WFS_STATE_LAST)
if (node) {
if (state & CDS_WFS_STATE_LAST)
- (*nr_pop_last)++;
+ (*nr_pop_last
_l
)++;
free(node);
free(node);
- (*nr_dequeues)++;
+ (*nr_dequeues
_l
)++;
}
} while (node);
}
}
} while (node);
}
@@
-515,7
+515,7
@@
int main(int argc, char **argv)
tot_pop_last += count_dequeuer[4 * i_thr + 3];
}
tot_pop_last += count_dequeuer[4 * i_thr + 3];
}
- test_end(&
s, &
end_dequeues, &tot_pop_last);
+ test_end(&end_dequeues, &tot_pop_last);
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.023806 seconds
and
4
git commands to generate.