From 1b4f2b305c95a832a259e4c4944f1a0981676eba Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Fri, 16 Apr 2004 09:24:30 +0000 Subject: Remove stray white spaces. --- testsuites/psxtests/psxtimer/psxtimer.c | 16 ++++++++-------- testsuites/psxtests/psxtimer/system.h | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'testsuites/psxtests/psxtimer') diff --git a/testsuites/psxtests/psxtimer/psxtimer.c b/testsuites/psxtests/psxtimer/psxtimer.c index fcacb10d75..ac4a7b9de1 100644 --- a/testsuites/psxtests/psxtimer/psxtimer.c +++ b/testsuites/psxtests/psxtimer/psxtimer.c @@ -36,7 +36,7 @@ struct periodic_params { struct timespec period; int signo; /* signal number */ int id; /* task identification */ - }; + }; pthread_attr_t attr; @@ -201,7 +201,7 @@ void * task_c (void *arg) if (sigwait(&set,&received_sig) == -1) { perror ("Error in sigwait\n"); pthread_exit ((void *) -1); - } + } pthread_mutex_lock (&data.mutex); while (data.updated == FALSE) { pthread_cond_wait (&data.sync,&data.mutex); @@ -227,10 +227,10 @@ void *POSIX_Init ( pthread_attr_t attr; /* task attributes */ pthread_t ta,tb,tc; /* threads */ sigset_t set; /* signals */ - + struct sched_param sch_param; /* schedule parameters */ struct periodic_params params_a, params_b, params_c; - + puts( "\n\n*** POSIX Timers Test ***" ); data.updated = FALSE; @@ -282,7 +282,7 @@ void *POSIX_Init ( priority) */ if (pthread_attr_setschedpolicy (&attr, SCHED_FIFO) != 0) { - perror ("Error in attribute setschedpolicy\n"); + perror ("Error in attribute setschedpolicy\n"); } /* set and create thread A with priority 1 */ @@ -291,7 +291,7 @@ void *POSIX_Init ( if (pthread_attr_setschedparam(&attr, &sch_param) != 0) { perror ("Error in attribute schedparam\n"); } - + /* Temporal parameters (1 sec. periodicity) */ params_a.period.tv_sec = 1; /* seconds */ @@ -302,12 +302,12 @@ void *POSIX_Init ( } /* set and create thread B with priority 15 */ - + sch_param.sched_priority = 15; if (pthread_attr_setschedparam(&attr, &sch_param) != 0) { perror ("Error in attribute schedparam"); } - + /* Temporal parameters (2 sec. periodicity) */ params_b.period.tv_sec = 2; /* seconds */ params_b.period.tv_nsec = 000000000; /* nanoseconds */ diff --git a/testsuites/psxtests/psxtimer/system.h b/testsuites/psxtests/psxtimer/system.h index c62d3e17ff..2b471f5b32 100644 --- a/testsuites/psxtests/psxtimer/system.h +++ b/testsuites/psxtests/psxtimer/system.h @@ -41,7 +41,7 @@ void *task_c( #define CONFIGURE_POSIX_INIT_THREAD_TABLE -#define CONFIGURE_MAXIMUM_POSIX_THREADS 4 +#define CONFIGURE_MAXIMUM_POSIX_THREADS 4 #define CONFIGURE_MAXIMUM_POSIX_TIMERS 4 #define CONFIGURE_MAXIMUM_TIMERS 4 #define CONFIGURE_MAXIMUM_POSIX_MUTEXES 2 -- cgit v1.2.3