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
sys/stat.h: fix typo in statx member name stx_dio_offset_align
[musl.git]
/
src
/
thread
/
pthread_setschedprio.c
blob
fc2e13ddb3dbb74ab144c173f1b70edcee866bb2
1
#include
"pthread_impl.h"
2
#include
"lock.h"
3
4
int
pthread_setschedprio
(
pthread_t t
,
int
prio
)
5
{
6
int
r
;
7
sigset_t set
;
8
__block_app_sigs
(&
set
);
9
LOCK
(
t
->
killlock
);
10
r
= !
t
->
tid
?
ESRCH
: -
__syscall
(
SYS_sched_setparam
,
t
->
tid
, &
prio
);
11
UNLOCK
(
t
->
killlock
);
12
__restore_sigs
(&
set
);
13
return
r
;
14
}