projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
math: move trivial x86-family sqrt functions to C with inline asm
[musl]
/
src
/
thread
/
pthread_setschedparam.c
diff --git
a/src/thread/pthread_setschedparam.c
b/src/thread/pthread_setschedparam.c
index
9e2fa45
..
038d13d
100644
(file)
--- a/
src/thread/pthread_setschedparam.c
+++ b/
src/thread/pthread_setschedparam.c
@@
-1,10
+1,11
@@
#include "pthread_impl.h"
#include "pthread_impl.h"
+#include "lock.h"
int pthread_setschedparam(pthread_t t, int policy, const struct sched_param *param)
{
int r;
LOCK(t->killlock);
int pthread_setschedparam(pthread_t t, int policy, const struct sched_param *param)
{
int r;
LOCK(t->killlock);
- r =
t->dea
d ? ESRCH : -__syscall(SYS_sched_setscheduler, t->tid, policy, param);
+ r =
!t->ti
d ? ESRCH : -__syscall(SYS_sched_setscheduler, t->tid, policy, param);
UNLOCK(t->killlock);
return r;
}
UNLOCK(t->killlock);
return r;
}