pthread_setschedprio.c 210 字节
Newer Older
1 2 3 4 5
#include "pthread_impl.h"

int pthread_setschedprio(pthread_t t, int prio)
{
	int r;
6
	LOCK(t->killlock);
7
	r = !t->tid ? ESRCH : -__syscall(SYS_sched_setparam, t->tid, &prio);
8
	UNLOCK(t->killlock);
9 10
	return r;
}