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_perthreadlock.c
diff --git
a/tests/benchmark/test_perthreadlock.c
b/tests/benchmark/test_perthreadlock.c
index f02e00b43e8db6144911dd4512a3f49875c9ac41..a4b1745b1e411d82957c8fb01382b99b331ae6df 100644
(file)
--- a/
tests/benchmark/test_perthreadlock.c
+++ b/
tests/benchmark/test_perthreadlock.c
@@
-170,6
+170,7
@@
static void urcu_mutex_unlock(pthread_mutex_t *lock)
}
}
}
}
+static
void *thr_reader(void *data)
{
unsigned long tidx = (unsigned long)data;
void *thr_reader(void *data)
{
unsigned long tidx = (unsigned long)data;
@@
-204,6
+205,7
@@
void *thr_reader(void *data)
}
}
+static
void *thr_writer(void *data)
{
unsigned long wtidx = (unsigned long)data;
void *thr_writer(void *data)
{
unsigned long wtidx = (unsigned long)data;
@@
-243,6
+245,7
@@
void *thr_writer(void *data)
return ((void*)2);
}
return ((void*)2);
}
+static
void show_usage(int argc, char **argv)
{
printf("Usage : %s nr_readers nr_writers duration (s) <OPTIONS>\n",
void show_usage(int argc, char **argv)
{
printf("Usage : %s nr_readers nr_writers duration (s) <OPTIONS>\n",
This page took
0.024236 seconds
and
4
git commands to generate.