From af9115f35cfb3d0adeb3e105fd608883596f2637 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 6 Oct 2017 10:07:38 +0200 Subject: posix: Simplify POSIX_API_Control Return stack area via pthread_getattr_np(). Simplify * pthread_attr_setaffinity_np(), and * pthread_attr_getaffinity_np() and let the scheduler do the more sophisticated error checks. Make * pthread_setaffinity_np(), * pthread_getaffinity_np(), * pthread_attr_setaffinity_np(), and * pthread_attr_getaffinity_np() available in all configurations. Update #2514. Close #3145. Close #3168. --- cpukit/posix/include/rtems/posix/threadsup.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'cpukit/posix/include/rtems/posix/threadsup.h') diff --git a/cpukit/posix/include/rtems/posix/threadsup.h b/cpukit/posix/include/rtems/posix/threadsup.h index 3bb2210d97..cc250f7464 100644 --- a/cpukit/posix/include/rtems/posix/threadsup.h +++ b/cpukit/posix/include/rtems/posix/threadsup.h @@ -43,8 +43,14 @@ typedef struct { /** Back pointer to thread of this POSIX API control. */ Thread_Control *thread; - /** This is the POSIX threads attribute set. */ - pthread_attr_t Attributes; + /** Created with explicit or inherited scheduler. */ + bool created_with_explicit_scheduler; + + /** The scheduler policy. */ + int schedpolicy; + + /** The scheduler parameters */ + struct sched_param schedparam; /** * @brief Control block for the sporadic server scheduling policy. -- cgit v1.2.3