summaryrefslogtreecommitdiff
path: root/src/thread/pthread_attr_setschedparam.c
blob: d4c1204fdc58b119db212380962eb8f593e5e2e8 (plain) (blame)
1
2
3
4
5
6
7
#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;
}