Proposed Pthread affinity APIs

Joel Sherrill joel.sherrill at
Tue Nov 12 02:11:10 UTC 2013

On 11/11/2013 5:20 PM, Chris Johns wrote:
> On 12/11/2013 7:30 am, Jennifer Averett wrote:
>> +#if defined(__rtems__)
>> +int _EXFUN(sigaltstack, (const stack_t *, stack_t *));
>> +#endif
> Why is this specific to __rtems__ while the type 'stack_t' is not ? 
> Should this be feature rather than platform controlled ?

That is part of the patch set in rtems-source-builder and should
have been filtered out of this.

>> +#if defined(__rtems__)
>> +  #include <sys/cpuset.h>
>> +#endif
> Is this only ever going to be used by RTEMS ? What if another user of 
> newlib wants to use the API ? Should this be HAVE_SYS_CPUSET, 
> PTHREAD_AFFINITY or something else ? I am not familiar with platform 
> specific configs in newlib so I do not if this is possible.

They can be OS or POSIX feature flag. This doesn't have a POSIX
feature flag. We could define one and add it if that is desired.

What about the APIs themselves?

> Chris
> _______________________________________________
> rtems-devel mailing list
> rtems-devel at

Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985

More information about the devel mailing list