repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
regex: treat \| in BRE as alternation
[musl.git]
/
src
/
thread
/
pthread_setschedprio.c
blob
e0bdc03b8405c2f8938bbf557b933e375e9dce81
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
}