summaryrefslogtreecommitdiff
path: root/sysdeps/generic/timer_routines.h
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-03-18 19:22:43 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-03-18 19:25:44 +0100
commitcf330bc70608049a66a5b12d9dc8de37325d81af (patch)
tree0476edda28331988c4d67e654d8436ad52ae2c22 /sysdeps/generic/timer_routines.h
parent12d1a7cf6b0f94139a5e274d06cabbf725238522 (diff)
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.
Diffstat (limited to 'sysdeps/generic/timer_routines.h')
-rw-r--r--sysdeps/generic/timer_routines.h4
1 files changed, 2 insertions, 2 deletions
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