X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fpthread_attr_setschedparam.c;h=d4c1204fdc58b119db212380962eb8f593e5e2e8;hb=697acde67e0da4d73b46445ed536fe9923d515c7;hp=b305f2fae46a1a0d11c58a54fad83eb681681631;hpb=243b542382990d8c2d0e5469ae68dfd622551a3e;p=musl diff --git a/src/thread/pthread_attr_setschedparam.c b/src/thread/pthread_attr_setschedparam.c index b305f2fa..d4c1204f 100644 --- a/src/thread/pthread_attr_setschedparam.c +++ b/src/thread/pthread_attr_setschedparam.c @@ -1,7 +1,7 @@ #include "pthread_impl.h" -int pthread_attr_setschedparam(pthread_attr_t *a, const struct sched_param *param) +int pthread_attr_setschedparam(pthread_attr_t *restrict a, const struct sched_param *restrict param) { - if (param->sched_priority) return ENOTSUP; + a->_a_prio = param->sched_priority; return 0; }