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/generic/timer_routines.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sysdeps/generic/timer_routines.h') diff --git a/sysdeps/generic/timer_routines.h b/sysdeps/generic/timer_routines.h index c69d7c1..d851ee6 100644 --- a/sysdeps/generic/timer_routines.h +++ b/sysdeps/generic/timer_routines.h @@ -33,8 +33,8 @@ thread_attr_compare (const pthread_attr_t *left, const pthread_attr_t *right) struct __pthread_attr *ileft = (struct __pthread_attr *) left; struct __pthread_attr *iright = (struct __pthread_attr *) right; - return (ileft->__schedparam.__sched_priority - == iright->__schedparam.__sched_priority + return (ileft->__schedparam.sched_priority + == iright->__schedparam.sched_priority && ileft->__stackaddr == iright->__stackaddr && ileft->__stacksize == iright->__stacksize && ileft->__guardsize == iright->__guardsize -- cgit v1.2.3