From dbe61956e0b4235238c225df58383141337bc2d2 Mon Sep 17 00:00:00 2001 From: Kyle K Date: Sat, 12 Feb 2011 16:34:07 -0600 Subject: kill whitespace --- pthread1.c | 12 ++++++------ pthread2.c | 10 +++++----- pthread3.c | 8 ++++---- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/pthread1.c b/pthread1.c index a6e9e7e..c7e6303 100644 --- a/pthread1.c +++ b/pthread1.c @@ -1,9 +1,9 @@ /* extreme case */ -#include -#include -#include -#include +#include +#include +#include +#include int left = 500, right = 500; pthread_mutex_t lock, cond_lock; @@ -24,11 +24,11 @@ void *leftf(void *args) struct timespec ts; gettimeofday(&tv, NULL); ts.tv_sec = tv.tv_sec + 1; - ts.tv_nsec = 0; + ts.tv_nsec = 0; pthread_mutex_lock(&cond_lock); pthread_cond_timedwait(&cond, &cond_lock, &ts); - pthread_mutex_unlock(&cond_lock); + pthread_mutex_unlock(&cond_lock); pthread_mutex_lock(&lock); printf("Now running left\n"); diff --git a/pthread2.c b/pthread2.c index 701721b..a4b1820 100644 --- a/pthread2.c +++ b/pthread2.c @@ -1,9 +1,9 @@ /* simple */ -#include -#include -#include -#include +#include +#include +#include +#include int left = 500, right = 500; pthread_mutex_t cond_lock; @@ -19,7 +19,7 @@ void *leftf(void *args) { pthread_mutex_lock(&cond_lock); pthread_cond_wait(&cond, &cond_lock); - pthread_mutex_unlock(&cond_lock); + pthread_mutex_unlock(&cond_lock); printf("Now running left\n"); diff --git a/pthread3.c b/pthread3.c index 51fadac..3a2f86e 100644 --- a/pthread3.c +++ b/pthread3.c @@ -1,9 +1,9 @@ /* with array */ -#include -#include -#include -#include +#include +#include +#include +#include int left = 500, right = 500; pthread_mutex_t cond_lock; -- cgit v1.2.3