projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleanup: all functions have declarations (-Wmissing-prototypes)
[userspace-rcu.git]
/
tests
/
benchmark
/
test_urcu_lfq.c
diff --git
a/tests/benchmark/test_urcu_lfq.c
b/tests/benchmark/test_urcu_lfq.c
index 26247b50022f8e3ecaf27acdc5f6d12fcfece758..26b18135e7052d9bfa17cf23b023f64976dc2869 100644
(file)
--- a/
tests/benchmark/test_urcu_lfq.c
+++ b/
tests/benchmark/test_urcu_lfq.c
@@
-139,6
+139,7
@@
struct test {
static struct cds_lfq_queue_rcu q;
static struct cds_lfq_queue_rcu q;
+static
void *thr_enqueuer(void *_count)
{
unsigned long long *count = _count;
void *thr_enqueuer(void *_count)
{
unsigned long long *count = _count;
@@
-194,6
+195,7
@@
void free_node_cb(struct rcu_head *head)
free(node);
}
free(node);
}
+static
void *thr_dequeuer(void *_count)
{
unsigned long long *count = _count;
void *thr_dequeuer(void *_count)
{
unsigned long long *count = _count;
@@
-243,6
+245,7
@@
void *thr_dequeuer(void *_count)
return ((void*)2);
}
return ((void*)2);
}
+static
void test_end(struct cds_lfq_queue_rcu *q, unsigned long long *nr_dequeues)
{
struct cds_lfq_node_rcu *snode;
void test_end(struct cds_lfq_queue_rcu *q, unsigned long long *nr_dequeues)
{
struct cds_lfq_node_rcu *snode;
@@
-259,6
+262,7
@@
void test_end(struct cds_lfq_queue_rcu *q, unsigned long long *nr_dequeues)
} while (snode);
}
} while (snode);
}
+static
void show_usage(int argc, char **argv)
{
printf("Usage : %s nr_dequeuers nr_enqueuers duration (s) <OPTIONS>\n",
void show_usage(int argc, char **argv)
{
printf("Usage : %s nr_dequeuers nr_enqueuers duration (s) <OPTIONS>\n",
This page took
0.023826 seconds
and
4
git commands to generate.