add support for thread scheduling (POSIX TPS option)
[musl] / src / thread / pthread_attr_getschedparam.c
index 804f6f0..de5fbfe 100644 (file)
@@ -1,7 +1,7 @@
 #include "pthread_impl.h"
 
-int pthread_attr_getschedparam(const pthread_attr_t *a, struct sched_param *param)
+int pthread_attr_getschedparam(const pthread_attr_t *restrict a, struct sched_param *restrict param)
 {
-       param->sched_priority = 0;
+       param->sched_priority = a->_a_prio;
        return 0;
 }