X-Git-Url: http://git.lttng.org/?p=urcu.git;a=blobdiff_plain;f=tests%2Fbenchmark%2Ftest_rwlock_timing.c;fp=tests%2Fbenchmark%2Ftest_rwlock_timing.c;h=a7d035ea5c92ddcca2046939db56ce36bce688ee;hp=0cc5253b7085c3426704ad9d5a2656d46bc51c9c;hb=61c3fb603104bda9e67c0690c1964e61a770d045;hpb=ed545d364011eed865cc051e7afe8ccf10ac64e9 diff --git a/tests/benchmark/test_rwlock_timing.c b/tests/benchmark/test_rwlock_timing.c index 0cc5253..a7d035e 100644 --- a/tests/benchmark/test_rwlock_timing.c +++ b/tests/benchmark/test_rwlock_timing.c @@ -67,6 +67,7 @@ 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 void *thr_reader(void *arg) { unsigned int i, j; @@ -106,6 +107,7 @@ void *thr_reader(void *arg) } +static void *thr_writer(void *arg) { unsigned int i, j;