projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
in clock_getres, check for null pointer before storing result
[musl]
/
src
/
thread
/
pthread_setschedprio.c
1
#include "pthread_impl.h"
2
#include "lock.h"
3
4
int pthread_setschedprio(pthread_t t, int prio)
5
{
6
int r;
7
LOCK(t->killlock);
8
r = !t->tid ? ESRCH : -__syscall(SYS_sched_setparam, t->tid, &prio);
9
UNLOCK(t->killlock);
10
return r;
11
}