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:
Sebastian Huber
2017-10-27 08:52:41 +02:00
parent 8fa827cc83
commit 81fd79daf0

View File

@@ -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, &param );
rtems_test_assert( sc == 0 );
param.sched_priority = sched_get_priority_max( SCHED_FIFO );