1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include "pthread_impl.h" int pthread_attr_setschedparam(pthread_attr_t *restrict a, const struct sched_param *restrict param) { a->_a_prio = param->sched_priority; return 0; } #ifdef TEST int main(void) { return 0; } #endif