forked from Imagelibrary/rtems
Modified to reflect change from 255 posix priority levels to 254.
This commit is contained in:
@@ -24,7 +24,7 @@ Init: sec (0), nsec (0) remaining
|
||||
Init: ID is 0x0c010001
|
||||
Init: sched_get_priority_min (SCHED_FIFO) -- 1
|
||||
Init: sched_get_priority_min -- EINVAL (invalid policy)
|
||||
Init: sched_get_priority_max (SCHED_FIFO) -- 255
|
||||
Init: sched_get_priority_max (SCHED_FIFO) -- 254
|
||||
Init: sched_get_priority_min -- EINVAL (invalid policy)
|
||||
Init: Round Robin quantum is 0 seconds, 500000000 nanoseconds
|
||||
Init: pthread_create - SUCCESSFUL
|
||||
|
||||
@@ -428,7 +428,7 @@ void *POSIX_Init(
|
||||
|
||||
/* set priority of Task2 to highest priority */
|
||||
|
||||
param.sched_priority = 255;
|
||||
param.sched_priority = 254;
|
||||
|
||||
puts( "Init: pthread_setschedparam - Setting Task2 priority to highest" );
|
||||
status = pthread_setschedparam( Task2_id, SCHED_FIFO, ¶m );
|
||||
@@ -550,7 +550,7 @@ void *POSIX_Init(
|
||||
|
||||
/* set priority of Init to highest priority */
|
||||
|
||||
param.sched_priority = 255;
|
||||
param.sched_priority = 254;
|
||||
|
||||
status = pthread_setschedparam( Init_id, SCHED_FIFO, ¶m );
|
||||
assert( !status );
|
||||
|
||||
@@ -3,7 +3,7 @@ Init's ID is 0x0c010001
|
||||
Init: pthread_mutexattr_init - EINVAL (NULL attr)
|
||||
Init: pthread_mutexattr_init - SUCCESSFUL
|
||||
Init: mutex protocol is (0) -- PTHREAD_PRIO_NONE
|
||||
Init: mutex priority ceiling is 255
|
||||
Init: mutex priority ceiling is 254
|
||||
Init: mutex process shared is (0) -- PTHREAD_PROCESS_PRIVATE
|
||||
Init: pthread_mutexattr_destroy - SUCCESSFUL
|
||||
Init: pthread_mutexattr_destroy - EINVAL (NULL attr)
|
||||
@@ -75,7 +75,7 @@ Init: pthread_mutex_init - SUCCESSFUL
|
||||
Init: pthread_mutex_trylock - SUCCESSFUL
|
||||
Init: pthread_setschedparam - Setting Task2 priority to highest
|
||||
Task 2: pthread_mutex_lock unavailable (inherit case)
|
||||
Init: pthread_getschedparam - priority = 255
|
||||
Init: pthread_getschedparam - priority = 254
|
||||
Init: pthread_mutex_unlock - SUCCESSFUL
|
||||
Task 2: mutex acquired
|
||||
Task 2: unlock Mutex 2
|
||||
@@ -88,7 +88,7 @@ Init: pthread_mutexattr_setprotocol - SUCCESSFUL (PTHREAD_PRIO_PROTECT)
|
||||
Init: pthread_mutex_init - SUCCESSFUL
|
||||
Init: pthread_mutex_getprioceiling - EINVAL (invalid id)
|
||||
Init: pthread_mutex_getprioceiling - EINVAL (NULL ceiling)
|
||||
Init: pthread_mutex_getprioceiling - 255
|
||||
Init: pthread_mutex_getprioceiling - 254
|
||||
Init: pthread_mutex_setprioceiling - EINVAL (invalid id)
|
||||
Init: pthread_mutex_setprioceiling - EINVAL (illegal priority)
|
||||
Init: pthread_mutex_setprioceiling - EINVAL (NULL ceiling)
|
||||
|
||||
Reference in New Issue
Block a user