projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
improve pthread_exit synchronization with functions targeting tid
[musl]
/
src
/
thread
/
pthread_setschedparam.c
diff --git
a/src/thread/pthread_setschedparam.c
b/src/thread/pthread_setschedparam.c
index
9e2fa45
..
ab45f2f
100644
(file)
--- a/
src/thread/pthread_setschedparam.c
+++ b/
src/thread/pthread_setschedparam.c
@@
-4,7
+4,7
@@
int pthread_setschedparam(pthread_t t, int policy, const struct sched_param *par
{
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;
}