From 17aa5fe9ed609543a0d0d92eeae2c2a4d222b6fd Mon Sep 17 00:00:00 2001 From: pithikos Date: Tue, 13 Jan 2015 13:45:03 +0000 Subject: [PATCH] Test prettyfy --- tests/src/conc_increment.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/src/conc_increment.c b/tests/src/conc_increment.c index bc716f5..5510acb 100644 --- a/tests/src/conc_increment.c +++ b/tests/src/conc_increment.c @@ -8,7 +8,7 @@ pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; int sum=0; -void add_one() { +void increment() { pthread_mutex_lock(&mutex); sum ++; pthread_mutex_unlock(&mutex); @@ -25,15 +25,15 @@ int main(int argc, char *argv[]){ int jobs = strtol(argv[1], &p, 10); int threads = strtol(argv[2], &p, 10); - thpool_t* threadpool; - threadpool = thpool_init(threads); + thpool_t* thpool; + thpool = thpool_init(threads); int n; for (n=0; n