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_setschedprio.c
diff --git
a/src/thread/pthread_setschedprio.c
b/src/thread/pthread_setschedprio.c
index
dc745b4
..
c353f6b
100644
(file)
--- a/
src/thread/pthread_setschedprio.c
+++ b/
src/thread/pthread_setschedprio.c
@@
-4,7
+4,7
@@
int pthread_setschedprio(pthread_t t, int prio)
{
int r;
LOCK(t->killlock);
- r =
t->dea
d ? ESRCH : -__syscall(SYS_sched_setparam, t->tid, &prio);
+ r =
!t->ti
d ? ESRCH : -__syscall(SYS_sched_setparam, t->tid, &prio);
UNLOCK(t->killlock);
return r;
}