This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch - Add pthread affinity for RTEMS


Hi

This patch follows up on the recent addition of the
RTEMS specific cpuset.h and adds GNU/Linux style
pthread affinity APIs to pthread.h.

Sebastian.. we think the guards follow your recommendations.

OK to commit?

2013-11-22  Jennifer Averett <jennifer.averett@oarcorp.com>

        * libc/include/pthread.h (pthread_attr_setaffinity_np,
        pthread_attr_getaffinity_np, pthread_setaffinity_np,
        pthread_getaffinity_np, pthread_getattr_np): Add pthread obtain
        attribute and SMP affinity methods to RTEMS for compatibility
        with GNU/Linux.
        * libc/include/sys/types.h: Add cpuset to pthread_attr_t for RTEMS.

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

Attachment: pthread-affinity.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]