summaryrefslogtreecommitdiff
path: root/sysdeps/pthread
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/pthread
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/pthread')
-rw-r--r--sysdeps/pthread/bits/thread-attr.h5
1 files changed, 2 insertions, 3 deletions
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 <bits/sched.h>
+#include <sched.h>
#define __need_size_t
#include <stddef.h>
@@ -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;