From cf330bc70608049a66a5b12d9dc8de37325d81af Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 18 Mar 2018 19:22:43 +0100 Subject: Use sched_param for now This exposes more structure names than desired, but we can see how to fix that another way later. * sysdeps/pthread/bits/thread-attr.h (__need_schedparam): Do not define macro. (struct __pthread_attr): Make __schedparam field struct sched_param instead of struct __sched_param. * sysdeps/generic/pt-attr.c (__pthread_default_attr): Use sched_priority instead of __sched_priority. * sysdeps/generic/pt-getschedparam.c (__pthread_getschedparam): Likewise. * sysdeps/generic/timer_routines.h (thread_attr_compare): Likewise. --- sysdeps/pthread/bits/thread-attr.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sysdeps/pthread') diff --git a/sysdeps/pthread/bits/thread-attr.h b/sysdeps/pthread/bits/thread-attr.h index d6a7d13..3b1591f 100644 --- a/sysdeps/pthread/bits/thread-attr.h +++ b/sysdeps/pthread/bits/thread-attr.h @@ -19,8 +19,7 @@ #ifndef _BITS_THREAD_ATTR_H #define _BITS_THREAD_ATTR_H 1 -#define __need_schedparam -#include +#include #define __need_size_t #include @@ -33,7 +32,7 @@ enum __pthread_contentionscope; that not all of them are supported on all systems. */ struct __pthread_attr { - struct __sched_param __schedparam; + struct sched_param __schedparam; void *__stackaddr; size_t __stacksize; size_t __guardsize; -- cgit v1.2.3