diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-04-16 09:24:30 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-04-16 09:24:30 +0000 |
commit | 1b4f2b305c95a832a259e4c4944f1a0981676eba (patch) | |
tree | 1ee56809b12a03ba53d630f5483a48387f72b74a /testsuites/psxtests/psxtimer/psxtimer.c | |
parent | Remove stray white spaces. (diff) | |
download | rtems-1b4f2b305c95a832a259e4c4944f1a0981676eba.tar.bz2 |
Remove stray white spaces.
Diffstat (limited to '')
-rw-r--r-- | testsuites/psxtests/psxtimer/psxtimer.c | 16 |
1 files changed, 8 insertions, 8 deletions
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 */ |