diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-05-24 14:16:24 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-05-24 14:16:24 +0000 |
commit | 6481405e5c6feb265efbea9549f7a1107f08de08 (patch) | |
tree | a1c6d812d5d21df209f380af2da8cb7eb60558cb /testsuites/psxtests/psxhdrs/pthread11.c | |
parent | new files (diff) | |
download | rtems-6481405e5c6feb265efbea9549f7a1107f08de08.tar.bz2 |
added use of sporadic server scheduling parameters
Diffstat (limited to 'testsuites/psxtests/psxhdrs/pthread11.c')
-rw-r--r-- | testsuites/psxtests/psxhdrs/pthread11.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuites/psxtests/psxhdrs/pthread11.c b/testsuites/psxtests/psxhdrs/pthread11.c index 521ff7616d..38de2d1c71 100644 --- a/testsuites/psxtests/psxhdrs/pthread11.c +++ b/testsuites/psxtests/psxhdrs/pthread11.c @@ -31,12 +31,22 @@ void test( void ) policy = SCHED_OTHER; policy = SCHED_FIFO; policy = SCHED_RR; +#ifdef _POSIX_SPORADIC_SERVER + policy = SCHED_SPORADIC; +#endif /* * really should use sched_get_priority_min() and sched_get_priority_max() */ param.sched_priority = 0; +#ifdef _POSIX_SPORADIC_SERVER + param.ss_low_priority = 0; + param.ss_replenish_period.tv_sec = 0; + param.ss_replenish_period.tv_nsec = 0; + param.ss_initial_budget.tv_sec = 0; + param.ss_initial_budget.tv_nsec = 0; +#endif result = pthread_setschedparam( thread, policy, ¶m ); } |