projects
/
urcu.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)
[urcu.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 d0e80db51b451de612ab3c247bb029011a8a637b..d700b87d2d88bec76e3d5ce910bbc2dc3259cfb7 100644
(file)
--- a/
tests/benchmark/test_urcu_lfs_rcu.c
+++ b/
tests/benchmark/test_urcu_lfs_rcu.c
@@
-143,6
+143,7
@@
struct test {
static struct cds_lfs_stack_rcu s;
static struct cds_lfs_stack_rcu s;
+static
void *thr_enqueuer(void *_count)
{
unsigned long long *count = _count;
void *thr_enqueuer(void *_count)
{
unsigned long long *count = _count;
@@
-197,6
+198,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;
@@
-245,6
+247,7
@@
void *thr_dequeuer(void *_count)
return ((void*)2);
}
return ((void*)2);
}
+static
void test_end(struct cds_lfs_stack_rcu *s, unsigned long long *nr_dequeues)
{
struct cds_lfs_node_rcu *snode;
void test_end(struct cds_lfs_stack_rcu *s, unsigned long long *nr_dequeues)
{
struct cds_lfs_node_rcu *snode;
@@
-261,6
+264,7
@@
void test_end(struct cds_lfs_stack_rcu *s, 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.037909 seconds
and
4
git commands to generate.