X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=include%2Fpthread.h;h=660a64d98220481d7ba457926e6d910712198b3a;hp=bc0d9f1c32bc3ef8a8ca6ea409eb4d5e0462434a;hb=c6d441e3a246370d9c459396ec22b096db93850e;hpb=0c05bd3a9c165cf2f0b9d6fa23a1f96532ddcdb3 diff --git a/include/pthread.h b/include/pthread.h index bc0d9f1c..660a64d9 100644 --- a/include/pthread.h +++ b/include/pthread.h @@ -4,18 +4,7 @@ extern "C" { #endif -#if __STDC_VERSION__ >= 199901L -#define __restrict restrict -#elif !defined(__GNUC__) -#define __restrict -#endif - -#if __STDC_VERSION__ >= 201112L -#elif defined(__GNUC__) -#define _Noreturn __attribute__((__noreturn__)) -#else -#define _Noreturn -#endif +#include #define __NEED_time_t #define __NEED_clockid_t @@ -102,6 +91,10 @@ int pthread_setcanceltype(int, int *); void pthread_testcancel(void); int pthread_cancel(pthread_t); +int pthread_getschedparam(pthread_t, int *__restrict, struct sched_param *__restrict); +int pthread_setschedparam(pthread_t, int, const struct sched_param *); +int pthread_setschedprio(pthread_t, int); + int pthread_once(pthread_once_t *, void (*)(void)); int pthread_mutex_init(pthread_mutex_t *__restrict, const pthread_mutexattr_t *__restrict);