add support for thread scheduling (POSIX TPS option)
[musl] / src / thread / pthread_attr_setschedparam.c
index 77ce9c9..d4c1204 100644 (file)
@@ -2,6 +2,6 @@
 
 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;
 }