projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add legacy sys/ttydefaults.h header
[oweals/musl.git]
/
src
/
thread
/
pthread_setschedprio.c
1
#include "pthread_impl.h"
2
3
int pthread_setschedprio(pthread_t t, int prio)
4
{
5
int r;
6
__lock(t->killlock);
7
r = t->dead ? ESRCH : -__syscall(SYS_sched_setparam, t->tid, &prio);
8
__unlock(t->killlock);
9
return r;
10
}