X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Fbenchmark%2Ftest_perthreadlock_timing.c;h=88c3edc0350f1fb2fab045092e110c07a9ddc796;hb=3b4d308436f00a8253549f16980fd6889dfe08b1;hp=c9cc65f70736dc441fc7a13b19d9b064ac8ce227;hpb=3fa182868e25068413fdaa1bef290365e99ab246;p=urcu.git diff --git a/tests/benchmark/test_perthreadlock_timing.c b/tests/benchmark/test_perthreadlock_timing.c index c9cc65f..88c3edc 100644 --- a/tests/benchmark/test_perthreadlock_timing.c +++ b/tests/benchmark/test_perthreadlock_timing.c @@ -67,9 +67,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 void *thr_reader(void *arg) { - int i, j; + unsigned int i, j; caa_cycles_t time1, time2; long tidx = (long)arg; @@ -96,9 +97,10 @@ void *thr_reader(void *arg) } +static void *thr_writer(void *arg) { - int i, j; + unsigned int i, j; long tidx; caa_cycles_t time1, time2;