forked from Imagelibrary/rtems
2009-07-06 Joel Sherrill <joel.sherrill@OARcorp.com>
* psx07/init.c: Slight test fix to ensure state of sched_param structure.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2009-07-06 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* psx07/init.c: Slight test fix to ensure state of sched_param
|
||||
structure.
|
||||
|
||||
2009-07-04 Santosh G Vattam <vattam.santosh@gmail.com>
|
||||
|
||||
* psxrwlock01/psxrwlock01.scn, psxrwlock01/test.c: Add test case for
|
||||
|
||||
@@ -504,7 +504,9 @@ void *POSIX_Init(
|
||||
status = pthread_setschedparam( pthread_self(), SCHED_OTHER, NULL );
|
||||
fatal_directive_check_status_only( status, EINVAL, "invalid priority" );
|
||||
|
||||
schedparam.sched_priority = sched_get_priority_max(SCHED_OTHER);
|
||||
/* reset sched_param */
|
||||
status = pthread_getschedparam( pthread_self(), &schedpolicy, &schedparam );
|
||||
posix_service_failed( status, "pthread_getschedparam");
|
||||
|
||||
puts( "Init: pthread_setschedparam - EINVAL (invalid policy)" );
|
||||
status = pthread_setschedparam( pthread_self(), -1, &schedparam );
|
||||
|
||||
Reference in New Issue
Block a user