projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: HAVE_SCHED_SETAFFINITY is not defined
[urcu.git]
/
tests
/
benchmark
/
test_urcu_qsbr_timing.c
diff --git
a/tests/benchmark/test_urcu_qsbr_timing.c
b/tests/benchmark/test_urcu_qsbr_timing.c
index 7619390e35f854df7020d8452e9dfd03420de540..71d8d8d806179b23c11c2b978892ba02304e2e1c 100644
(file)
--- a/
tests/benchmark/test_urcu_qsbr_timing.c
+++ b/
tests/benchmark/test_urcu_qsbr_timing.c
@@
-39,6
+39,7
@@
pthread_mutex_t rcu_copy_mutex = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t rcu_copy_mutex = PTHREAD_MUTEX_INITIALIZER;
+static
void rcu_copy_mutex_lock(void)
{
int ret;
void rcu_copy_mutex_lock(void)
{
int ret;
@@
-49,6
+50,7
@@
void rcu_copy_mutex_lock(void)
}
}
}
}
+static
void rcu_copy_mutex_unlock(void)
{
int ret;
void rcu_copy_mutex_unlock(void)
{
int ret;
@@
-83,9
+85,10
@@
static int num_write;
static caa_cycles_t __attribute__((aligned(CAA_CACHE_LINE_SIZE))) *reader_time;
static caa_cycles_t __attribute__((aligned(CAA_CACHE_LINE_SIZE))) *writer_time;
static caa_cycles_t __attribute__((aligned(CAA_CACHE_LINE_SIZE))) *reader_time;
static caa_cycles_t __attribute__((aligned(CAA_CACHE_LINE_SIZE))) *writer_time;
+static
void *thr_reader(void *arg)
{
void *thr_reader(void *arg)
{
- int i, j;
+
unsigned
int i, j;
struct test_array *local_ptr;
caa_cycles_t time1, time2;
struct test_array *local_ptr;
caa_cycles_t time1, time2;
@@
-120,9
+123,10
@@
void *thr_reader(void *arg)
}
}
+static
void *thr_writer(void *arg)
{
void *thr_writer(void *arg)
{
- int i, j;
+
unsigned
int i, j;
struct test_array *new, *old;
caa_cycles_t time1, time2;
struct test_array *new, *old;
caa_cycles_t time1, time2;
This page took
0.027315 seconds
and
4
git commands to generate.