forked from Imagelibrary/rtems
smppsxaffinity02: Fix thread attribute usage
The pthread_getattr_np() returns now the stack address and size. Do not use this stack for the new threads. Update #2514. Update #3145. Update #3168.
This commit is contained in:
@@ -113,6 +113,10 @@ void Validate_affinity(void )
|
||||
puts( "Init - Set Init priority to high");
|
||||
sc = pthread_getattr_np( Init_id, &attr );
|
||||
rtems_test_assert( sc == 0 );
|
||||
|
||||
sc = pthread_attr_setstack( &attr, NULL, 0 );
|
||||
rtems_test_assert( sc == 0 );
|
||||
|
||||
sc = pthread_attr_getschedparam( &attr, ¶m );
|
||||
rtems_test_assert( sc == 0 );
|
||||
param.sched_priority = sched_get_priority_max( SCHED_FIFO );
|
||||
|
||||
Reference in New Issue
Block a user